aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeann Ogasawara <leann.ogasawara@canonical.com>2011-10-10 15:19:41 -0400
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>2011-10-17 13:33:27 -0400
commit39a7540c8af83036b7951601c78ebf529e44bb0d (patch)
treed3b8990de71185c212dcd2a11119c4015931d590
parent4cb1ba94383a1ffb25e4e7d452184beb8066c89e (diff)
Revert "UBUNTU: SAUCE: ata: make DVD drive recognisable on systems with Sandybridge CPT chipset"
This reverts commit 44e8c44804843af82e614921173bc0e01c3ea2e0. There is a better solution which fixes more cases. BugLink: https://bugs.launchpad.net/bugs/737388 BugLink: https://bugs.launchpad.net/bugs/794642 BugLink: https://bugs.launchpad.net/bugs/782389 Upstream: [1],[2],[3] [1], https://bugzilla.kernel.org/show_bug.cgi?id=40592 [2], http://marc.info/?t=131665670300001&r=1&w=2 [3], http://marc.info/?t=131743346400002&r=1&w=2 Signed-off-by: Ming Lei <ming.lei@canonical.com> Acked-by: Tim Gardner <tim.gardner@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
-rw-r--r--drivers/ata/ata_piix.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index bfaa44ecfca..6f6e7718b05 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -341,12 +341,11 @@ static struct ata_port_operations piix_sata_ops = {
341}; 341};
342 342
343static struct ata_port_operations piix_pata_ops = { 343static struct ata_port_operations piix_pata_ops = {
344 .inherits = &ata_bmdma32_port_ops, 344 .inherits = &piix_sata_ops,
345 .cable_detect = ata_cable_40wire, 345 .cable_detect = ata_cable_40wire,
346 .set_piomode = piix_set_piomode, 346 .set_piomode = piix_set_piomode,
347 .set_dmamode = piix_set_dmamode, 347 .set_dmamode = piix_set_dmamode,
348 .prereset = piix_pata_prereset, 348 .prereset = piix_pata_prereset,
349 .sff_irq_check = piix_irq_check,
350}; 349};
351 350
352static struct ata_port_operations piix_vmw_ops = { 351static struct ata_port_operations piix_vmw_ops = {
@@ -1588,15 +1587,6 @@ static int __devinit piix_init_one(struct pci_dev *pdev,
1588 "on poweroff and hibernation\n"); 1587 "on poweroff and hibernation\n");
1589 } 1588 }
1590 1589
1591 /*
1592 * Sandybridge chipset H61/P67/H67 have broken 32 mode up to now
1593 * see https://bugzilla.kernel.org/show_bug.cgi?id=40592
1594 */
1595 if (pdev->vendor == PCI_VENDOR_ID_INTEL && pdev->device == 0x1c00)
1596 piix_sata_ops.inherits = &ata_bmdma_port_ops;
1597 else
1598 piix_sata_ops.inherits = &ata_bmdma32_port_ops;
1599
1600 port_info[0] = piix_port_info[ent->driver_data]; 1590 port_info[0] = piix_port_info[ent->driver_data];
1601 port_info[1] = piix_port_info[ent->driver_data]; 1591 port_info[1] = piix_port_info[ent->driver_data];
1602 1592