mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
28c1969ff8
commit
ee31527a02
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue