CVS commit: [netbsd-8] src/sys/dev/i2c

2020-07-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jul 20 19:00:40 UTC 2020

Modified Files:
src/sys/dev/i2c [netbsd-8]: sdtemp.c

Log Message:
Pull up the following revisions, requested by msaitoh in ticket #1580:

sys/dev/i2c/sdtemp.c1.35, 1.37-1.39

- Check the return value of iic_acquire_bus() because this function
  may fail.
- Fix typo in comment.
- KNF.


To generate a diff of this commit:
cvs rdiff -u -r1.32.8.1 -r1.32.8.2 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-8] src/sys/dev/i2c

2018-10-14 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Mon Oct 15 03:09:07 UTC 2018

Modified Files:
src/sys/dev/i2c [netbsd-8]: gttwsi_core.c gttwsivar.h

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #1061):
sys/dev/i2c/gttwsi_core.c: revision 1.4-1.8 via patch
sys/dev/i2c/gttwsivar.h: revision 1.4 via patch
Use IPL_VM for bus lock so we can do i2c xfers from interrupt context
Don't sleep with IPL_VM lock held.
When initiating a transfer, if a device isn't present, we won't
get an ACK after sending the address.  Check for this alternate
state and suppress the error message when it occurs.
Fixes PR kern/53356.
Bail early if gttwsi_send_start() fails in gttwsi_initiate_xfer() to
avoid unexpected state error message later (on Allwinner H5).
Expand code covered by sc->sc_mtx, to make sure an interrupt would not be
handled before the cv_timedwait_sig() call, or while polling.
Seems to fix "sunxitwi0: send STOP failed" messages frequently seen related
to axp20x0 sensors.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.12.1 src/sys/dev/i2c/gttwsi_core.c \
src/sys/dev/i2c/gttwsivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [netbsd-8] src/sys/dev/i2c

2018-02-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Feb 15 07:52:17 UTC 2018

Modified Files:
src/sys/dev/i2c [netbsd-8]: files.i2c

Log Message:
Pull up following revision(s) (requested by uwe in ticket #548):

sys/dev/i2c/files.i2c: revision 1.84 (via patch)

Delete 'define dbcool {}' line commented out in previous.  It's bogus
and the gcc6 correctly complains about that when it compiles ioconf.c
PR toolchain/53023


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.73.4.1 src/sys/dev/i2c/files.i2c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.