ide: clear bmdma status in ide_intr() for ICHx controllers (revised #4)
authorAlbert Lee <albertcc@tw.ibm.com>
Sat, 17 Feb 2007 01:40:21 +0000 (02:40 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 17 Feb 2007 01:40:21 +0000 (02:40 +0100)
commitf0dd8712eb8cc5687b4582fbc41cfbcd55bba0d2
tree190bc6cf68e056ae72d895dc2c9074de2c0ed18f
parentfdb77da4ca68ae17a39d58c9d5c00479a7e124c0
ide: clear bmdma status in ide_intr() for ICHx controllers (revised #4)

patch 1/2 (revised):
- Fix drive->waiting_for_dma to work with CDB-intr devices.
- Do the dma status clearing in ide_intr() and add a new
  hwif->ide_dma_clear_irq for Intel ICHx controllers.

Revised per Alan, Sergei and Bart's advice.

Patch against 2.6.20-rc6. Tested ok on my ICH4 and pdc20275 adapters.
Please review/apply, thanks.

Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: "Adam W. Hawks" <awhawks@us.ibm.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-cd.c
drivers/ide/ide-io.c
drivers/ide/ide.c
drivers/ide/pci/piix.c
include/linux/ide.h