[i2c] Request for help getting I2C driver to read SEEPROM on SMBus

Patrick Connolly Patrick.Connolly at watchguard.com
Tue Jun 12 03:49:34 CEST 2007


YES!    That was it !!  The patch fixed it!!

Thank you Jean!!

Regards,
Patrick Connolly 


-----Original Message-----
From: Jean Delvare [mailto:khali at linux-fr.org] 
Sent: Saturday, June 09, 2007 6:34 AM
To: Patrick Connolly
Cc: i2c at lm-sensors.org
Subject: Re: [i2c] Request for help getting I2C driver to read SEEPROM
on SMBus

Hi Patrick,

On Fri, 8 Jun 2007 10:48:21 -0700, Patrick Connolly wrote:
> > 3. Did you have to unhide the SMBus?
>     No - is it possible that this would be needed?

Seems not.

> > 4. Please provide the output of lspci
>     Output is in attachment lspci.txt.

> # lspci -s 00:1f.3 -vv
> 00:1f.3 Class 0c05: Unknown device 8086:266a (rev 04)
>         Subsystem: Unknown device 8086:266a
>         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
>         Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR-
>         Interrupt: pin B routed to IRQ 10
>         Region 4: I/O ports at 0500 [disabled] [size=32]

Note the [disabled], this is the problem. The I/O region is disabled,
thus the driver fails to read anything meaningful from it. I think I
fixed this in 2.6.18, with this patch:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commi
tdiff;h=6dcc19dfbc84b2ea5428711b7a47146b5b1788bb
The key part is the added call to pci_enable_device().

I am attaching a minimalist patch for 2.6.14.1, which will hopefully let
the i2c-i801 driver work on your system.

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



More information about the i2c mailing list