[PATCH 1/3] Correctly detect Sony TX770P PIC device type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This laptop has Type 4 SPIC device, support for which has been added
recently. This device resides behind an older ISA bridge and was
earlier incorrectly detected as Type 3.
---
 drivers/misc/sony-laptop.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 02ff3d1..be70153 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -1563,6 +1563,11 @@ static void sony_pic_detect_device_type(struct sony_pic_dev *dev)
 	pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
 			PCI_DEVICE_ID_INTEL_ICH6_1, NULL);
 	if (pcidev) {
+		if (pcidev->subsystem_vendor == PCI_VENDOR_ID_SONY &&
+				pcidev->subsystem_device == 0x81E2) {
+			dev->control = &spic_types[3];
+			goto out;
+		}
 		dev->control = &spic_types[2];
 		goto out;
 	}
-- 
1.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux