Commit 31bbb668 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by David S. Miller

amd74xx: don't change UDMA settings when programming PIO timings

Based on libata pata_amd host driver.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d23f33de
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* IDE driver for Linux. * IDE driver for Linux.
* *
* Copyright (c) 2000-2002 Vojtech Pavlik * Copyright (c) 2000-2002 Vojtech Pavlik
* Copyright (c) 2007-2008 Bartlomiej Zolnierkiewicz * Copyright (c) 2007-2010 Bartlomiej Zolnierkiewicz
* *
* Based on the work of: * Based on the work of:
* Andre Hedrick * Andre Hedrick
...@@ -70,7 +70,8 @@ static void amd_set_speed(struct pci_dev *dev, u8 dn, u8 udma_mask, ...@@ -70,7 +70,8 @@ static void amd_set_speed(struct pci_dev *dev, u8 dn, u8 udma_mask,
default: return; default: return;
} }
pci_write_config_byte(dev, AMD_UDMA_TIMING + offset + (3 - dn), t); if (timing->udma)
pci_write_config_byte(dev, AMD_UDMA_TIMING + offset + 3 - dn, t);
} }
/* /*
...@@ -340,6 +341,6 @@ static void __exit amd74xx_ide_exit(void) ...@@ -340,6 +341,6 @@ static void __exit amd74xx_ide_exit(void)
module_init(amd74xx_ide_init); module_init(amd74xx_ide_init);
module_exit(amd74xx_ide_exit); module_exit(amd74xx_ide_exit);
MODULE_AUTHOR("Vojtech Pavlik"); MODULE_AUTHOR("Vojtech Pavlik, Bartlomiej Zolnierkiewicz");
MODULE_DESCRIPTION("AMD PCI IDE driver"); MODULE_DESCRIPTION("AMD PCI IDE driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment