[i2c] Request for help getting I2C driver to read SEEPROM on SMBus
Jean Delvare
khali at linux-fr.org
Sat Jun 9 15:34:27 CEST 2007
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=commitdiff;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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i2c-i801-enable-device.patch
Type: text/x-patch
Size: 648 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/i2c/attachments/20070609/d9ff67cf/attachment.bin
More information about the i2c
mailing list