1. 29 Nov, 2006 2 commits
    • Tejun Heo's avatar
      [PATCH] libata: add missing sht->slave_destroy · afdfe899
      Tejun Heo authored
      Many LLDs are missing sht->slave_destroy.  The method is mandatory to
      support device warm unplugging (echo 1 > /sys/.../delete).  Without
      it, libata might access released scsi device.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      afdfe899
    • Tejun Heo's avatar
      [PATCH] ahci: ignore PORT_IRQ_IF_ERR on JMB controllers · 41669553
      Tejun Heo authored
      JMicron AHCI controllers set PORT_IRQ_IF_ERR on device errors.  The
      IRQ status bit indicates interface error or protocol mismatch and ahci
      driver interprets it into AC_ERR_ATA_BUS.  So, whenever an ATAPI
      device raises check condition, ahci interprets it as ATA bus error and
      thus resets it which, in turn, raises check condition thus creating a
      reset loop and rendering the device unuseable.
      
      This patch makes JMB controllers ignore PORT_IRQ_IF_ERR when
      interpreting error condition.
      Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
      Cc: Justin Tsai <justin@jmicron.com>
      41669553
  2. 28 Nov, 2006 3 commits
  3. 27 Nov, 2006 3 commits
    • Linus Torvalds's avatar
      Fix 'ALIGN()' macro, take 2 · 2ea58144
      Linus Torvalds authored
      You wouldn't think that doing an ALIGN() macro that aligns something up
      to a power-of-two boundary would be likely to have bugs, would you?
      
      But hey, in the wonderful world of mixing integer types, you have to be
      careful.  This just makes sure that the alignment is interpreted in the
      same type as the thing to be aligned.
      
      Thanks to Roland Dreier, who noticed that the amso1100 driver got broken
      by the previous fix (that just extended the mask to "unsigned long", but
      was still broken in "unsigned long long" - it just happened to be the
      same on 64-bit architectures).
      
      See commit 4c8bd7ee for the history of
      bugs here...
      Acked-by: default avatarRoland Dreier <rdreier@cisco.com>
      Cc: Andrew Morton <akpm@osdl.org>
      Cc: David Miller <davem@davemloft.net>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      2ea58144
    • Kyle McMartin's avatar
      [PATCH] Fix incorrent type of flags in <asm/semaphore.h> · c9c3b86f
      Kyle McMartin authored
      I still think using BUILD_BUG_ON() is unacceptable, especially given how
      vague the error message was.
      Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
      [ And I already removed gthe BUILD_BUG_ON() in the previous commit ]
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c9c3b86f
    • Linus Torvalds's avatar
      Revert "[PATCH] Enforce "unsigned long flags;" when spinlocking" · b8e6ec86
      Linus Torvalds authored
      This reverts commit ee3ce191, since it
      broke on at least ARM, MIPS and PA-RISC due to complicated header file
      dependencies.
      
      Conflicts in include/linux/spinlock.h (due to the "nested" variety
      fixes) fixed up by hand.
      
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Kyle McMartin <kyle@parisc-linux.org>
      Cc: Russell King <rmk+lkml@arm.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b8e6ec86
  4. 26 Nov, 2006 8 commits
  5. 25 Nov, 2006 24 commits