NetBSD/sys/dev/i2c
pgoyette 704a9b346c Previous check for ADM1027 caused a kernel panic, since the read routine
can be called _before_ we've identified the chip.  Ensure that sc_chip
is initialized to NULL before chip is identified, and if it is NULL or
ADM1027, use the less-efficient send_byte/receive_byte.

While here, don't attempt to release the i2c bus if we failed to acquire
it.  This would cause a panic on a LOCKDEBUG kernel.

Thanks to Nicholas Joly for pointing out both of these bugs.
2009-02-09 20:27:21 +00:00
..
adm1021.c
at24cxx.c
at24cxxvar.h
dbcool_reg.h
dbcool_var.h
dbcool.c Previous check for ADM1027 caused a kernel panic, since the read routine 2009-02-09 20:27:21 +00:00
ddc.c
ddcreg.h
ddcvar.h
ds1307.c
ds1307reg.h
files.i2c
i2c_bitbang.c
i2c_bitbang.h
i2c_exec.c Handle i2c quick_read/quick_write bus protocol in the generic i2c_exec() 2009-02-03 16:17:54 +00:00
i2c_io.h
i2c.c Change the i2c bus scan routine to use the write_quick protocol for most 2009-02-03 16:41:31 +00:00
i2cvar.h
lm75.c According to the datasheet, temperatures on the LM75 are kept in 2009-01-09 17:20:31 +00:00
lm75reg.h
lm_i2c.c
m41st84.c
m41st84reg.h
m41st84var.h
m41t00.c
m41t00reg.h
max6900.c
max6900reg.h
pcf8583.c
pcf8583reg.h
pcf8583var.h
pic16lc.c
pic16lcreg.h
r2025.c
r2025reg.h
rs5c372.c
rs5c372reg.h
sgsmix.c
sgsmixvar.h
spdmem.c
spdmemreg.h
spdmemvar.h
x1226.c
x1226reg.h
xbseeprom.c