diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-11-30 09:55:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 00:44:18 +0100 |
commit | ee31527a02b0a8e1aa4a5e4084d2db5fa34737ed (patch) | |
tree | 0ac1568a991e0cf3f52c0ec65cd5a96da2bc1276 /drivers/ide/slc90e66.c | |
parent | ide: fix ioctl to pass requested transfer mode to ide_find_dma_mode instead o... (diff) | |
download | linux-ee31527a02b0a8e1aa4a5e4084d2db5fa34737ed.tar.xz linux-ee31527a02b0a8e1aa4a5e4084d2db5fa34737ed.zip |
slc90e66: fix UDMA handling
Fix checking of the currently programmed UDMA mode.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/slc90e66.c')
-rw-r--r-- | drivers/ide/slc90e66.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/slc90e66.c b/drivers/ide/slc90e66.c index 9aec78d3bcff..1ccfb40e7215 100644 --- a/drivers/ide/slc90e66.c +++ b/drivers/ide/slc90e66.c @@ -91,8 +91,7 @@ static void slc90e66_set_dma_mode(ide_drive_t *drive, const u8 speed) 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, ®4a); pci_write_config_word(dev, 0x4a, reg4a|u_speed); |