slc90e66: fix UDMA handling
PATCH 1/1 slc90e66: fix UDMA handling
Fix checking of the currently programmed UDMA mode.
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/slc90e66.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/ide/slc90e66.c +1 -2
@@ -92,8 +92,7 @@ static void slc90e66_set_dma_mode(ide_hwif (!(reg48 & u_flag))pci_write_config_word (dev,0x48 , reg48|u_flag); -/* FIXME: (reg4a & a_speed) ? */ -if ((reg4a & u_speed) != u_speed) { +if ((reg4a & a_speed) != u_speed) {pci_write_config_word (dev,0x4a , reg4a & ~a_speed);pci_read_config_word (dev,0x4a , ®4a);pci_write_config_word (dev,0x4a , reg4a|u_speed);
Hello.
Quoted 3 lines · Bartlomiej Zolnierkiewicz
Fix checking of the currently programmed UDMA mode.
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei