linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] I2C: add new AMD SMBus device ID
@ 2009-09-10  8:04 Crane Cai
  2009-09-10 11:50 ` Jean Delvare
  0 siblings, 1 reply; 3+ messages in thread
From: Crane Cai @ 2009-09-10  8:04 UTC (permalink / raw)
  To: Jean Delvare
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Add new SMBus device ID for SB900

---
Hi Jean,

We follow your point, new patch submitted, please apply.

Thanks,
- Crane
---

Signed-off-by: Crane Cai <crane.cai-5C7GfCeVMHo@public.gmane.org>
---
 drivers/i2c/busses/i2c-piix4.c |    8 +++++---
 include/linux/pci_ids.h        |    1 +
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c
index 0249a7d..a75d216 100644
--- a/drivers/i2c/busses/i2c-piix4.c
+++ b/drivers/i2c/busses/i2c-piix4.c
@@ -479,6 +479,7 @@ static struct pci_device_id piix4_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP300_SMBUS) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP400_SMBUS) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS) },
+	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_SB900_SMBUS) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS,
 		     PCI_DEVICE_ID_SERVERWORKS_OSB4) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS,
@@ -499,9 +500,10 @@ static int __devinit piix4_probe(struct pci_dev *dev,
 {
 	int retval;
 
-	if ((dev->vendor == PCI_VENDOR_ID_ATI) &&
-	    (dev->device == PCI_DEVICE_ID_ATI_SBX00_SMBUS) &&
-	    (dev->revision >= 0x40))
+	if ((dev->vendor == PCI_VENDOR_ID_ATI &&
+	     dev->device == PCI_DEVICE_ID_ATI_SBX00_SMBUS &&
+	     dev->revision >= 0x40) ||
+	    dev->vendor == PCI_VENDOR_ID_AMD)
 		/* base address location etc changed in SB800 */
 		retval = piix4_setup_sb800(dev, id);
 	else
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 73b46b6..0786ccd 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -537,6 +537,7 @@
 #define PCI_DEVICE_ID_AMD_8131_BRIDGE	0x7450
 #define PCI_DEVICE_ID_AMD_8131_APIC	0x7451
 #define PCI_DEVICE_ID_AMD_8132_BRIDGE	0x7458
+#define PCI_DEVICE_ID_AMD_SB900_SMBUS	0x780b
 #define PCI_DEVICE_ID_AMD_CS5536_ISA    0x2090
 #define PCI_DEVICE_ID_AMD_CS5536_FLASH  0x2091
 #define PCI_DEVICE_ID_AMD_CS5536_AUDIO  0x2093
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] I2C: add new AMD SMBus device ID
  2009-09-10  8:04 [PATCH] I2C: add new AMD SMBus device ID Crane Cai
@ 2009-09-10 11:50 ` Jean Delvare
       [not found]   ` <20090910135047.2a55ccca-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2009-09-10 11:50 UTC (permalink / raw)
  To: Crane Cai
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi Crane,

On Thu, 10 Sep 2009 16:04:27 +0800, Crane Cai wrote:
> Add new SMBus device ID for SB900
> 
> ---
> Hi Jean,
> 
> We follow your point, new patch submitted, please apply.

Applied, thanks. FYI, I also had to list the SB900 in
Documentation/i2c/busses/i2c-piix4 and drivers/i2c/busses/Kconfig. Next
time, please include these changes in your patch. The completed patch
can be seen at:
ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-piix4-add-amd-SB900-smbus-device-id.patch

Will a datasheet for the SB900 be released to the public at some point
in the future? That would be useful for us developers.

Thanks,
-- 
Jean Delvare
http://khali.linux-fr.org/wishlist.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] I2C: add new AMD SMBus device ID
       [not found]   ` <20090910135047.2a55ccca-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2009-09-11  1:15     ` Crane Cai
  0 siblings, 0 replies; 3+ messages in thread
From: Crane Cai @ 2009-09-11  1:15 UTC (permalink / raw)
  To: Jean Delvare
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

Hi Jean,

On Thu, Sep 10, 2009 at 01:50:47PM +0200, Jean Delvare wrote:
> Applied, thanks. FYI, I also had to list the SB900 in
> Documentation/i2c/busses/i2c-piix4 and drivers/i2c/busses/Kconfig. Next
> time, please include these changes in your patch. The completed patch
> can be seen at:
> ftp://ftp.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-i2c/i2c-piix4-add-amd-SB900-smbus-device-id.patch
Thanks.
> 
> Will a datasheet for the SB900 be released to the public at some point
> in the future? That would be useful for us developers.
Yes, in future.

-- 
Best Regards,
- Crane

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-11  1:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10  8:04 [PATCH] I2C: add new AMD SMBus device ID Crane Cai
2009-09-10 11:50 ` Jean Delvare
     [not found]   ` <20090910135047.2a55ccca-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-09-11  1:15     ` Crane Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).