freebsd-dev/sys/dev/iicbus/twsi
Emmanuel Vadot e18c80bcb6 twsi: Fix for > Allwinner A20
Every revision of twsi after the A20 have a bug where we need to
write again the control register after each interrupts. We also need
to add some delay before writing to this register, a simple read of the
same register does the job so do that.
Also fix the case when we have finish sending all the bytes, it only worked
for 1 byte transfer (the same kind that we do for talking to the PMIC on A20
boards).
While here add more debug messages and rework some of them.

This was tested by talking to a AT23C32 eeprom and a DS3231 RTC from an
H3 and A20 board.

PR:		247576
Reported by:	Manuel Stühn (freebsd@justmail.de)
MFC after:	1 week
2020-07-08 19:14:44 +00:00
..
a10_twsi.c Add pnpinfo. 2019-05-23 18:19:56 +00:00
mv_twsi.c Add pnpinfo. 2019-05-23 18:19:56 +00:00
twsi.c twsi: Fix for > Allwinner A20 2020-07-08 19:14:44 +00:00
twsi.h twsi: Rework how we handle the i2c messages 2020-01-10 18:52:14 +00:00