aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/it821x.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c
index 0be27ac1f077..983440a9a5f7 100644
--- a/drivers/ide/it821x.c
+++ b/drivers/ide/it821x.c
@@ -68,6 +68,8 @@
68 68
69#define DRV_NAME "it821x" 69#define DRV_NAME "it821x"
70 70
71#define QUIRK_VORTEX86 1
72
71struct it821x_dev 73struct it821x_dev
72{ 74{
73 unsigned int smart:1, /* Are we in smart raid mode */ 75 unsigned int smart:1, /* Are we in smart raid mode */
@@ -79,6 +81,7 @@ struct it821x_dev
79 u16 pio[2]; /* Cached PIO values */ 81 u16 pio[2]; /* Cached PIO values */
80 u16 mwdma[2]; /* Cached MWDMA values */ 82 u16 mwdma[2]; /* Cached MWDMA values */
81 u16 udma[2]; /* Cached UDMA values (per drive) */ 83 u16 udma[2]; /* Cached UDMA values (per drive) */
84 u16 quirks;
82}; 85};
83 86
84#define ATA_66 0 87#define ATA_66 0
@@ -577,6 +580,12 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif)
577 580
578 hwif->ultra_mask = ATA_UDMA6; 581 hwif->ultra_mask = ATA_UDMA6;
579 hwif->mwdma_mask = ATA_MWDMA2; 582 hwif->mwdma_mask = ATA_MWDMA2;
583
584 /* Vortex86SX quirk: prevent Ultra-DMA mode to fix BadCRC issue */
585 if (idev->quirks & QUIRK_VORTEX86) {
586 if (dev->revision == 0x11)
587 hwif->ultra_mask = 0;
588 }
580} 589}
581 590
582static void it8212_disable_raid(struct pci_dev *dev) 591static void it8212_disable_raid(struct pci_dev *dev)
@@ -649,6 +658,8 @@ static int __devinit it821x_init_one(struct pci_dev *dev, const struct pci_devic
649 return -ENOMEM; 658 return -ENOMEM;
650 } 659 }
651 660
661 itdevs->quirks = id->driver_data;
662
652 rc = ide_pci_init_one(dev, &it821x_chipset, itdevs); 663 rc = ide_pci_init_one(dev, &it821x_chipset, itdevs);
653 if (rc) 664 if (rc)
654 kfree(itdevs); 665 kfree(itdevs);
@@ -668,6 +679,7 @@ static void __devexit it821x_remove(struct pci_dev *dev)
668static const struct pci_device_id it821x_pci_tbl[] = { 679static const struct pci_device_id it821x_pci_tbl[] = {
669 { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8211), 0 }, 680 { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8211), 0 },
670 { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8212), 0 }, 681 { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8212), 0 },
682 { PCI_VDEVICE(RDC, PCI_DEVICE_ID_RDC_D1010), QUIRK_VORTEX86 },
671 { 0, }, 683 { 0, },
672}; 684};
673 685