From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Mon, 19 Nov 2007 14:36:28 +0000 (+0000)
Subject: pata_ali: Add Mitac 8317 and derivatives
X-Git-Tag: firefly_0821_release~24269^2~6
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f59a13accd78e9759548b40aa2a053938a01ec7;p=firefly-linux-kernel-4.4.55.git

pata_ali: Add Mitac 8317 and derivatives

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
---

diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c
index 364534e7aff4..d12f386c1507 100644
--- a/drivers/ata/pata_ali.c
+++ b/drivers/ata/pata_ali.c
@@ -63,6 +63,9 @@ static int ali_cable_override(struct pci_dev *pdev)
 	/* Fujitsu P2000 */
 	if (pdev->subsystem_vendor == 0x10CF && pdev->subsystem_device == 0x10AF)
 	   	return 1;
+	/* Mitac 8317 (Winbook-A) and relatives */
+	if (pdev->subsystem_vendor == 0x1071  && pdev->subsystem_device == 0x8317)
+		return 1;
 	/* Systems by DMI */
 	if (dmi_check_system(cable_dmi_table))
 		return 1;