Skip to contentSkip to conversation

pci/quirks.c: unhide SMBus device on Samsung P35 laptop

PATCH Applied Carl-Daniel Hailfinger 2 participants 2 messages Feb 17, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci/quirks.c: unhide SMBus device on Samsung P35 laptop

Hi,

this patch is needed to make the SMBus device on my Samsung P35 laptop visible. By default, it doesn't appear as a pci device.

Patch tested, works perfectly for me. Please apply.

Regards,
Carl-Daniel

Signature · 32 lines
http://www.hailfinger.org/

Signed-off-by: Carl-Daniel Hailfinger <[email protected]>

===== drivers/pci/quirks.c 1.68 vs edited =====
--- 1.68/drivers/pci/quirks.c	2005-02-03 07:42:20 +01:00
+++ edited/drivers/pci/quirks.c	2005-02-16 23:50:49 +01:00
@@ -801,6 +801,12 @@
 			case 0x12bc: /* HP D330L */
 				asus_hides_smbus = 1;
 			}
+       } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG)) {
+               if (dev->device ==  PCI_DEVICE_ID_INTEL_82855PM_HB)
+                       switch(dev->subsystem_device) {
+                       case 0xC00C: /* Samsung P35 notebook */
+                               asus_hides_smbus = 1;
+                       }
 	}
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL,	PCI_DEVICE_ID_INTEL_82845_HB,	asus_hides_smbus_hostbridge );
===== include/linux/pci_ids.h 1.200 vs edited =====
--- 1.200/include/linux/pci_ids.h	2005-01-31 07:33:43 +01:00
+++ edited/include/linux/pci_ids.h	2005-02-16 23:48:09 +01:00
@@ -1905,6 +1905,8 @@
 #define PCI_DEVICE_ID_OXSEMI_16PCI954PP	0x9513
 #define PCI_DEVICE_ID_OXSEMI_16PCI952	0x9521

+#define PCI_VENDOR_ID_SAMSUNG		0x144d
+
 #define PCI_VENDOR_ID_AIRONET		0x14b9
 #define PCI_DEVICE_ID_AIRONET_4800_1	0x0001
 #define PCI_DEVICE_ID_AIRONET_4800	0x4500 // values switched?  see
Applied
#1 lore raw
Quoted 6 lines · Carl-Daniel Hailfinger

Hi,

this patch is needed to make the SMBus device on my Samsung P35 laptop visible. By default, it doesn't appear as a pci device.

Patch tested, works perfectly for me. Please apply.

Applied, thanks.

greg k-h