Thanks for the advice. How do I go about finding what driver, module
or process is using /dev/i2c-1?
I've tried:
fuser /dev/i2c-1
which outputs nothing
and this is my output of lsmod:
Module Size Used by
libertas_sdio 13208 0
libertas 167676 1 libertas_sdio
lib80211 6472 1 libertas
and my output of ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 kthreadd
3 ? 00:00:37 ksoftirqd/0
4 ? 00:00:00 watchdog/0
5 ? 00:00:00 events/0
6 ? 00:00:00 khelper
170 ? 00:00:00 kblockd/0
173 ? 00:00:00 dsi
178 ? 00:00:00 kseriod
185 ? 00:00:00 twl4030-irqchip
186 ? 00:00:00 twl4030-irq
206 ? 00:00:00 omap2_mcspi
214 ? 00:00:00 ksuspend_usbd
220 ? 00:00:00 khubd
225 ? 00:00:00 kmmcd
232 ? 00:00:00 btaddconn
233 ? 00:00:00 btdelconn
264 ? 00:00:00 pdflush
265 ? 00:00:00 pdflush
266 ? 00:00:00 kswapd0
267 ? 00:00:00 aio/0
268 ? 00:00:00 nfsiod
422 ? 00:00:00 mtdblockd
459 ? 00:00:00 kpsmoused
471 ? 00:00:00 kondemand/0
479 ? 00:00:00 hid_compat
510 ? 00:00:00 krfcommd
512 ? 00:00:00 rpciod/0
524 ? 00:00:01 mmcqd
531 ? 00:00:00 kjournald
577 ? 00:00:00 udevd
1300 ? 00:00:00 ksdioirqd/mmc1
1333 ? 00:00:00 portmap
1376 ? 00:00:00 lbs_main
1377 ? 00:00:00 lbs_worker
1403 ? 00:00:00 dropbear
1414 ? 00:00:00 dbus-daemon
1419 ? 00:00:00 syslogd
1421 ? 00:00:00 klogd
1436 ? 00:00:00 avahi-daemon
1465 ttyS2 00:00:00 sh
1466 tty1 00:00:00 getty
1671 ? 00:00:00 wpa_supplicant
1764 ? 00:00:00 udhcpc
1851 ttyS2 00:00:00 ps
My guess (an uninformed one at that) is that the twl4030 processes are
locking the i2c line. If this is correct, should I recompile the
kernel with twl4030 as a module so that I can unload it before trying
to talk to the i2c bus?
Post by Dave HylandsHi Brett,
Post by Brett GrahamI am trying to use the adcs on the tps65950 power management chip. I
think I have everything working under uboot but when I try to use the
i2c tools in linux I'm getting the following error
Error: Could not set address to 0x49: Device or resource busy