ata_piix: fix pio/mwdma programming
authorTejun Heo <htejun@gmail.com>
Fri, 25 May 2007 17:16:58 +0000 (19:16 +0200)
committerJeff Garzik <jeff@garzik.org>
Mon, 9 Jul 2007 16:17:34 +0000 (12:17 -0400)
commita5bf5f5a370ba7c10f5362265e360952145a7da1
tree841c33286cf77a73e909b9764a6ab488c1c9560e
parentdab632e8c483532bd84e1f3401c72612e39a7c40
ata_piix: fix pio/mwdma programming

Fix various bugs in pio/mwdma mode programming.

* Control bits in the timing register wasn't cleared properly while
  programming PIO mode.

* MWDMA mode programming cleared the wrong part of control bits.

* MWDMA mode programming cleared udma_mask even when the controller
  doesn't support UDMA.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Art Haas <ahaas@airmail.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ata_piix.c