Hi,
I'm having some issues with kmod_i2c_ralink where the bus randomly locks up.
Situation is simple. I'm using ioctl and read/write to communicate with a i2c device and when doing so, I randomly get an issue where every i2c read/write starts generating timeouts.
Error is present in latest snapshot, but not on old chaos calmer (bleeding edge, r43860).
I was first thinking it was caused by noise on the SCL/SDA lines cause of having lots of relays on the board, but I have discarded that thought since it happens when no relay have been toggled for a while.

Client is a PIC18F46K22.

Issue is solved by rebooting the SoC (HLK-RM04) from the SSH terminal, so its likely Not a client issue.

Complete code can be made available if need be.

dmesg output is
[ 2940.645208] i2c-read line busy

I can not export the pins to gpio since they are locked by the I2C pinmux.


Worth noting is that I did have reboot issues on the PIC before, but I have solved them only to stumble onto this I2C issue.
And SSL connections also seem to break sometimes with server giving "Bad record MAC" and client (HLK) giving broken pipe and terminates the program instead of failing so I can restart the socket.



Any thoughts?


I2C cutout of mips program: https://gist.github.com/RozeDoyanawa/be … 0dbbaf951b


//Kind regards.

(Last edited by KakuRoze on 21 Mar 2017, 21:35)