From: root <root@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Signed-off-by: Alan Cox <alan@xxxxxxxxxx> --- drivers/scsi/pata_ali.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 4592b74f2e12f8da82f18f2ee073907398daaac1 diff --git a/drivers/scsi/pata_ali.c b/drivers/scsi/pata_ali.c index eacc13b..91f00c7 100644 --- a/drivers/scsi/pata_ali.c +++ b/drivers/scsi/pata_ali.c @@ -34,7 +34,7 @@ #include <linux/dmi.h> #define DRV_NAME "pata_ali" -#define DRV_VERSION "0.6.3" +#define DRV_VERSION "0.6.4" /* * Cable special cases @@ -283,6 +283,7 @@ static void ali_set_dmamode(struct ata_p struct ata_device *pair = ata_dev_pair(adev); struct ata_timing t; unsigned long T = 1000000000 / 33333; /* PCI clock based */ + struct pci_dev *pdev = to_pci_dev(ap->host_set->dev); if (adev->class == ATA_DEV_ATA) @@ -627,7 +628,7 @@ static int ali_init_one(struct pci_dev * * via 0x54/55. */ pci_read_config_byte(pdev, 0x53, &tmp); - if (rev == 0x20) + if (rev <= 0x20) tmp &= ~0x02; if (rev == 0xc7) tmp |= 0x03; -- 1.2.GIT - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html