Skip to contentSkip to conversation

slc90e66: fix UDMA handling

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Nov 30, 2009 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slc90e66: fix UDMA handling

Fix checking of the currently programmed UDMA mode.

---
 drivers/ide/slc90e66.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/ide/slc90e66.c +1 -2
Index: b/drivers/ide/slc90e66.c
===================================================================
@@ -92,8 +92,7 @@ static void slc90e66_set_dma_mode(ide_hw
 
 		if (!(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, &reg4a);
 			pci_write_config_word(dev, 0x4a, reg4a|u_speed);