* [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop
@ 2005-02-17 2:49 Carl-Daniel Hailfinger
2005-02-17 23:17 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Carl-Daniel Hailfinger @ 2005-02-17 2:49 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Greg KH
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
--
http://www.hailfinger.org/
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
===== 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop
2005-02-17 2:49 [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop Carl-Daniel Hailfinger
@ 2005-02-17 23:17 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2005-02-17 23:17 UTC (permalink / raw)
To: Carl-Daniel Hailfinger; +Cc: Linux Kernel Mailing List
On Thu, Feb 17, 2005 at 03:49:17AM +0100, Carl-Daniel Hailfinger wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop
2005-03-04 20:53 [PATCH] PCI: allow x86_64 to do pci express Greg KH
@ 2005-03-04 20:53 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2005-03-04 20:53 UTC (permalink / raw)
To: linux-kernel, linux-pci; +Cc: c-d.hailfinger.devel.2005
ChangeSet 1.1998.11.20, 2005/02/17 15:06:37-08:00, c-d.hailfinger.devel.2005@gmx.net
[PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop
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.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/quirks.c | 6 ++++++
include/linux/pci_ids.h | 2 ++
2 files changed, 8 insertions(+)
diff -Nru a/drivers/pci/quirks.c b/drivers/pci/quirks.c
--- a/drivers/pci/quirks.c 2005-03-04 12:41:55 -08:00
+++ b/drivers/pci/quirks.c 2005-03-04 12:41:55 -08:00
@@ -807,6 +807,12 @@
case 0x0001: /* Toshiba Satellite A40 */
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 );
diff -Nru a/include/linux/pci_ids.h b/include/linux/pci_ids.h
--- a/include/linux/pci_ids.h 2005-03-04 12:41:55 -08:00
+++ b/include/linux/pci_ids.h 2005-03-04 12:41:55 -08: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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-05 4:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17 2:49 [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop Carl-Daniel Hailfinger
2005-02-17 23:17 ` Greg KH
2005-03-04 20:53 [PATCH] PCI: allow x86_64 to do pci express Greg KH
2005-03-04 20:53 ` [PATCH] pci/quirks.c: unhide SMBus device on Samsung P35 laptop Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome