Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=58e47bb1767aa89bfa9cf7ecf4bc051886ae22b3
Commit:     58e47bb1767aa89bfa9cf7ecf4bc051886ae22b3
Parent:     6c28c1f59dce3325d373f44766e23eb4237a74c8
Author:     Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 11 22:28:37 2007 +0200
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Tue Sep 11 22:28:37 2007 +0200

    via82cxxx: add Arima W730-K8 and other rebadgings to short cables list
    
    Port of Alan's patch for pata_via.c.
    
    Cc: Alan Cox <[EMAIL PROTECTED]>
    Cc: Mikael Pettersson <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
---
 drivers/ide/pci/via82cxxx.c |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c
index 8c53938..a7be779 100644
--- a/drivers/ide/pci/via82cxxx.c
+++ b/drivers/ide/pci/via82cxxx.c
@@ -1,6 +1,6 @@
 /*
  *
- * Version 3.46
+ * Version 3.47
  *
  * VIA IDE driver for Linux. Supported southbridges:
  *
@@ -430,19 +430,26 @@ static struct dmi_system_id cable_dmi_table[] = {
        { }
 };
 
-static int via_cable_override(void)
+static int via_cable_override(struct pci_dev *pdev)
 {
        /* Systems by DMI */
        if (dmi_check_system(cable_dmi_table))
                return 1;
+
+       /* Arima W730-K8/Targa Visionary 811/... */
+       if (pdev->subsystem_vendor == 0x161F &&
+           pdev->subsystem_device == 0x2032)
+               return 1;
+
        return 0;
 }
 
 static u8 __devinit via82cxxx_cable_detect(ide_hwif_t *hwif)
 {
-       struct via82cxxx_dev *vdev = pci_get_drvdata(hwif->pci_dev);
+       struct pci_dev *pdev = hwif->pci_dev;
+       struct via82cxxx_dev *vdev = pci_get_drvdata(pdev);
 
-       if (via_cable_override())
+       if (via_cable_override(pdev))
                return ATA_CBL_PATA40_SHORT;
 
        if ((vdev->via_80w >> hwif->channel) & 1)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to