Re: Help Requested with patching "drivers/pci/quirks.c"

From: Randy.Dunlap
Date: Sun Sep 26 2004 - 18:25:44 EST


On Mon, 27 Sep 2004 11:06:15 +1200 Roberts-Thomson, James wrote:

| Looking at the quirks.c code, I can see functions like
| "asus_hides_smbus_hostbridge" and "asus_hides_smbus_lpc", which use a lookup
| table to determine whether or not to set the appropriate flag and toggle the
| PCI bits to enable the SMbus. Obviously, I need to include the appropriate
| checks (and associated entries in the pci_fixups struct) to get this applied
| to my machine at kernel load time (I've seen some patches on the lkml
| recently that seem to do exactly this - quite happy to try and add this
| functionality). For example, here is an extract from a similar patch:
|
| + if ((dev->device == PCI_DEVICE_ID_INTEL_82865_HB) &&
| + (dev->subsystem_device == 0x12bc)) /* HP D330L */
| + asus_hides_smbus = 1;
|
| My problem is that I don't understand how the "dev->device" and
| "dev->subsystem_device" values are obtained. Where/How do I read the actual
| values from my machine so that I can add them into the code tables?

Try "lspci -n".

| Any help would be appreciated; as would "cc"ing replies directly to me (I
| don't subscribe to lkml, and may miss replies when searching via MARC).
|
|
| This communication is confidential and may contain privileged material.
| If you are not the intended recipient you must not use, disclose, copy or retain it.
| If you have received it in error please immediately notify me by return email
| and delete the emails.

N.B.: I may have received this non-confidential email in error.

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/