CVS commit: src/sys/dev/i2c

2021-07-24 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sun Jul 25 00:11:43 UTC 2021

Modified Files:
src/sys/dev/i2c: fcu.c

Log Message:
don't put CPUs in separate zones, turns out there really isn't much that
keeps the airflow apart around them


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/fcu.c

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



CVS commit: src/sys/dev/i2c

2021-06-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jun 21 03:12:54 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1021.c dbcool.c dstemp.c i2c.c lm75.c pcagpio.c
pcf8574.c

Log Message:
fix proplib deprecation


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/dstemp.c
cvs rdiff -u -r1.78 -r1.79 src/sys/dev/i2c/i2c.c
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/pcagpio.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2021-06-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Jun 15 04:41:01 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1021.c dstemp.c

Log Message:
iic_acquire_bus may fail.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/dstemp.c

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



CVS commit: src/sys/dev/i2c

2021-06-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Jun 15 04:40:13 UTC 2021

Modified Files:
src/sys/dev/i2c: am2315.c

Log Message:
avoid double-free


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/am2315.c

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



CVS commit: src/sys/dev/i2c

2021-06-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Jun 15 04:39:49 UTC 2021

Modified Files:
src/sys/dev/i2c: dbcool.c hytp14.c si70xx.c

Log Message:
avoid double-free


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/si70xx.c

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



CVS commit: src/sys/dev/i2c

2021-06-14 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Mon Jun 14 13:52:11 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1026.c

Log Message:
Call sysmon_envsys_destroy() if we receive any error from sysmon, rather
than just on some errors.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/adm1026.c

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



CVS commit: src/sys/dev/i2c

2021-06-14 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Mon Jun 14 09:56:04 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1026.c

Log Message:
Avoid double free when attach fails.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/adm1026.c

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



CVS commit: src/sys/dev/i2c

2021-06-13 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Jun 13 09:48:45 UTC 2021

Modified Files:
src/sys/dev/i2c: lm_i2c.c

Log Message:
iic_acquire_bus can fail


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/lm_i2c.c

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



CVS commit: src/sys/dev/i2c

2021-06-13 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Jun 13 09:48:04 UTC 2021

Modified Files:
src/sys/dev/i2c: spdmem_i2c.c

Log Message:
iic_acquire_bus can fail


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/spdmem_i2c.c

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



CVS commit: src/sys/dev/i2c

2021-06-13 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Jun 13 09:47:36 UTC 2021

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
Clear sc_sme pointer to avoid double free.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 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: src/sys/dev/i2c

2021-06-13 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sun Jun 13 09:46:04 UTC 2021

Modified Files:
src/sys/dev/i2c: lm75.c lm87.c

Log Message:
iic_acquire_bus can fail.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/lm87.c

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



CVS commit: src/sys/dev/i2c

2021-05-23 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon May 24 05:58:42 UTC 2021

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Bail out of axpreg_attach if axpreg_get_voltage returns an error.

uvol isn't updated and shouldn't be used.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/i2c/axppmic.c

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



CVS commit: src/sys/dev/i2c

2021-05-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri May 21 21:21:01 UTC 2021

Modified Files:
src/sys/dev/i2c: m41st84.c

Log Message:
add \n to attach output


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/i2c/m41st84.c

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



CVS commit: src/sys/dev/i2c

2021-05-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri May 21 20:42:05 UTC 2021

Modified Files:
src/sys/dev/i2c: lm75.c

Log Message:
don't prop_object_retain(NULL)


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/i2c/lm75.c

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



CVS commit: src/sys/dev/i2c

2021-04-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Apr 16 07:02:09 UTC 2021

Modified Files:
src/sys/dev/i2c: i2cvar.h

Log Message:
spello in comment


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/i2cvar.h

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



CVS commit: src/sys/dev/i2c

2021-02-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Mar  1 04:40:39 UTC 2021

Modified Files:
src/sys/dev/i2c: lm75.c

Log Message:
Use lmtemp(4) as entropy source.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/i2c/lm75.c

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



CVS commit: src/sys/dev/i2c

2021-02-28 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Mar  1 04:39:45 UTC 2021

Modified Files:
src/sys/dev/i2c: dstemp.c

Log Message:
Use dstemp(4) as entropy source.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/dstemp.c

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



CVS commit: src/sys/dev/i2c

2021-02-05 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Feb  6 05:21:47 UTC 2021

Modified Files:
src/sys/dev/i2c: lm75.c

Log Message:
- Add some additional compat strings from the DT bindings.
- Use device_compatible_entry::value to hold the device type, and generally
  tidy up device type selection.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/i2c/lm75.c

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



CVS commit: src/sys/dev/i2c

2021-01-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:38:57 UTC 2021

Modified Files:
src/sys/dev/i2c: s390.c

Log Message:
Add the standard compat string from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/s390.c

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



CVS commit: src/sys/dev/i2c

2021-01-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:38:28 UTC 2021

Modified Files:
src/sys/dev/i2c: rs5c372.c

Log Message:
Add standard compat strings from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/rs5c372.c

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



CVS commit: src/sys/dev/i2c

2021-01-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:37:25 UTC 2021

Modified Files:
src/sys/dev/i2c: dstemp.c

Log Message:
Add the standard compat string from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/dstemp.c

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



CVS commit: src/sys/dev/i2c

2021-01-29 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 01:23:08 UTC 2021

Modified Files:
src/sys/dev/i2c: sgsmix.c

Log Message:
Add a proper compat string for this device, following the standard
conventions.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/sgsmix.c

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



CVS commit: src/sys/dev/i2c

2021-01-29 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 01:22:06 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1021.c dbcool.c dstemp.c lm75.c

Log Message:
If we're going to keep a reference on the "props" dictionary from
the i2c_attach_args, we should retain it.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/dstemp.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/i2c/lm75.c

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



CVS commit: src/sys/dev/i2c

2021-01-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan 28 14:57:43 UTC 2021

Modified Files:
src/sys/dev/i2c: at24cxx.c

Log Message:
No need to consult ia->ia_ncompat before calling iic_compatible_lookup().


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/i2c/at24cxx.c

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



CVS commit: src/sys/dev/i2c

2021-01-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan 28 14:42:45 UTC 2021

Modified Files:
src/sys/dev/i2c: ssdfb_i2c.c

Log Message:
Use iic_compatible_lookup() in ssdfb_i2c_attach().


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/ssdfb_i2c.c

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



CVS commit: src/sys/dev/i2c

2021-01-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan 28 14:35:11 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1021.c

Log Message:
Use iic_compatible_lookup() in admtemp_setflags().


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/i2c/adm1021.c

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



CVS commit: src/sys/dev/i2c

2021-01-26 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan 27 02:29:48 UTC 2021

Modified Files:
src/sys/dev/i2c: ac100.c adadc.c adm1021.c adm1026.c anxedp.c as3722.c
asms.c at24cxx.c axp20x.c axp22x.c axppmic.c cwfg.c dbcool.c
ds1307.c dstemp.c em3027.c es8316ac.c fan53555.c fcu.c hytp14.c
ihidev.c lm75.c lm87.c m41st84.c max77620.c pca9685.c pcagpio.c
pcai2cmux.c pcf8563.c pcf8574.c rkpmic.c spdmem_i2c.c ssdfb_i2c.c
sy8106a.c tcagpio.c tcakp.c tda19988.c titemp.c tps65217pmic.c
tsllux.c

Log Message:
Use DEVICE_COMPAT_EOL.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/ac100.c src/sys/dev/i2c/tda19988.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/adadc.c src/sys/dev/i2c/pcagpio.c
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/adm1026.c \
src/sys/dev/i2c/max77620.c src/sys/dev/i2c/titemp.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/anxedp.c src/sys/dev/i2c/pca9685.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/as3722.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/asms.c src/sys/dev/i2c/cwfg.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/i2c/at24cxx.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/i2c/axp20x.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/axp22x.c src/sys/dev/i2c/dstemp.c \
src/sys/dev/i2c/fan53555.c src/sys/dev/i2c/pcf8574.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/i2c/axppmic.c
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2c/ds1307.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/em3027.c src/sys/dev/i2c/pcai2cmux.c \
src/sys/dev/i2c/ssdfb_i2c.c src/sys/dev/i2c/sy8106a.c \
src/sys/dev/i2c/tcagpio.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/es8316ac.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/fcu.c src/sys/dev/i2c/rkpmic.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/i2c/ihidev.c \
src/sys/dev/i2c/tps65217pmic.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/lm87.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/i2c/m41st84.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/pcf8563.c src/sys/dev/i2c/tcakp.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/i2c/spdmem_i2c.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/tsllux.c

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



CVS commit: src/sys/dev/i2c

2021-01-26 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan 27 02:28:37 UTC 2021

Modified Files:
src/sys/dev/i2c: twl4030.c

Log Message:
Replace 2 uses of of_match_compatible().  Also use DEVICE_COMPAT_EOL.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/twl4030.c

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



CVS commit: src/sys/dev/i2c

2021-01-25 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jan 26 02:33:55 UTC 2021

Modified Files:
src/sys/dev/i2c: ihidev.c

Log Message:
Now that the ACPI layer no longer does this for us, evaluate the _DSM
that returns the HID descriptor address at attach time.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/ihidev.c

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



CVS commit: src/sys/dev/i2c

2021-01-25 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Jan 26 01:15:39 UTC 2021

Modified Files:
src/sys/dev/i2c: ihidev.c

Log Message:
Back out unintended change in previous.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/ihidev.c

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



CVS commit: src/sys/dev/i2c

2021-01-25 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan 25 13:30:20 UTC 2021

Modified Files:
src/sys/dev/i2c: ac100.c adadc.c adm1021.c adm1026.c anxedp.c as3722.c
asms.c at24cxx.c axp20x.c axp22x.c axppmic.c cwfg.c dbcool.c
ds1307.c dstemp.c em3027.c es8316ac.c fan53555.c fcu.c hytp14.c
ihidev.c lm75.c lm87.c m41st84.c max77620.c pca9685.c pcagpio.c
pcf8563.c pcf8574.c rkpmic.c spdmem_i2c.c ssdfb_i2c.c sy8106a.c
tcagpio.c tcakp.c tda19988.c titemp.c tps65217pmic.c

Log Message:
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/ac100.c src/sys/dev/i2c/tda19988.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/adadc.c src/sys/dev/i2c/pcagpio.c
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/adm1026.c \
src/sys/dev/i2c/max77620.c src/sys/dev/i2c/titemp.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/anxedp.c src/sys/dev/i2c/pca9685.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/i2c/as3722.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/asms.c src/sys/dev/i2c/cwfg.c
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/i2c/at24cxx.c
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/i2c/axp20x.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/axp22x.c src/sys/dev/i2c/dstemp.c \
src/sys/dev/i2c/fan53555.c src/sys/dev/i2c/pcf8574.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/i2c/axppmic.c
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/i2c/ds1307.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/em3027.c src/sys/dev/i2c/ssdfb_i2c.c \
src/sys/dev/i2c/sy8106a.c src/sys/dev/i2c/tcagpio.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/es8316ac.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/fcu.c src/sys/dev/i2c/rkpmic.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/ihidev.c src/sys/dev/i2c/pcf8563.c \
src/sys/dev/i2c/tcakp.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/lm87.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/i2c/m41st84.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/i2c/spdmem_i2c.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/tps65217pmic.c

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



CVS commit: src/sys/dev/i2c

2021-01-25 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Mon Jan 25 12:08:47 UTC 2021

Modified Files:
src/sys/dev/i2c: motoi2c.c motoi2cvar.h

Log Message:
NXP Layerscape LX2160A has an almost compatible controller, with a few
quirks:
 - IBCR bit 7 is "module disable" instead of "module enable".
 - Status bits in IBSR are W1C.
Add quirk flags for both.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/motoi2c.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/motoi2cvar.h

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



CVS commit: src/sys/dev/i2c

2021-01-24 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 24 19:38:49 UTC 2021

Modified Files:
src/sys/dev/i2c: pcai2cmux.c

Log Message:
remove part of previous that was committed by mistake


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/pcai2cmux.c

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



CVS commit: src/sys/dev/i2c

2021-01-24 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 24 19:37:45 UTC 2021

Modified Files:
src/sys/dev/i2c: pcai2cmux.c

Log Message:
trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/pcai2cmux.c

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



CVS commit: src/sys/dev/i2c

2021-01-24 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 24 19:35:45 UTC 2021

Modified Files:
src/sys/dev/i2c: i2cmuxvar.h

Log Message:
trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/i2cmuxvar.h

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



CVS commit: src/sys/dev/i2c

2021-01-24 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 24 19:35:21 UTC 2021

Modified Files:
src/sys/dev/i2c: i2cmux.c

Log Message:
trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/i2cmux.c

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



CVS commit: src/sys/dev/i2c

2021-01-24 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 24 18:01:14 UTC 2021

Modified Files:
src/sys/dev/i2c: motoi2c.c motoi2cvar.h

Log Message:
Support non-FDT attachment.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/motoi2c.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/motoi2cvar.h

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



CVS commit: src/sys/dev/i2c

2021-01-23 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Jan 24 05:30:05 UTC 2021

Modified Files:
src/sys/dev/i2c: adm1021.c

Log Message:
Use temperature sensors as rnd(9) sources.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/i2c/adm1021.c

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



CVS commit: src/sys/dev/i2c

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:47:50 UTC 2021

Modified Files:
src/sys/dev/i2c: ihidev.c tsllux.c

Log Message:
Use designated initializers and a consistent termination style in
compat_data[].


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/ihidev.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/tsllux.c

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



CVS commit: src/sys/dev/i2c

2021-01-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan  4 22:09:35 UTC 2021

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: tsllux.c
Removed Files:
src/sys/dev/i2c: tsl256x.c

Log Message:
Rename tsl256x.c -> tsllux.c.  No other changes are made by this commit.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/dev/i2c/files.i2c
cvs rdiff -u -r1.9 -r0 src/sys/dev/i2c/tsl256x.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/tsllux.c

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



CVS commit: src/sys/dev/i2c

2021-01-04 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan  4 21:59:49 UTC 2021

Modified Files:
src/sys/dev/i2c: tsl256x.c tsl256xreg.h

Log Message:
Tweak register bit names, in preparation for supporting younger siblings
of this chip.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/tsl256x.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/tsl256xreg.h

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



CVS commit: src/sys/dev/i2c

2020-12-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Dec 29 01:47:52 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: pcai2cmux.c

Log Message:
Add a driver for NXP PCA954x / PCA984x I2C switch / mux controllers.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/dev/i2c/files.i2c
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/pcai2cmux.c

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



CVS commit: src/sys/dev/i2c

2020-12-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Tue Dec 29 00:26:51 UTC 2020

Modified Files:
src/sys/dev/i2c: i2cvar.h

Log Message:
- Use __BIT() macro to define I2C_F_* bits.
- Define an I2C_F_SPEED bitfield that can be used to specify an
  I2C bus speed:

  -> Standard Mode (100Kb/s)
  -> Fast Mode (400Kb/s)
  -> Fast Mode Plus (1Mb/s)
  -> High Speed (3.4Mb/s)

The speed values are treated as advisory; if a controller does not support
the requested speed mode, fallback to a lower one is allowed.

(Currently, all controllers simply use Standard Mode.)


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/i2c/i2cvar.h

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



CVS commit: src/sys/dev/i2c

2020-12-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Wed Dec 23 17:57:00 UTC 2020

Modified Files:
src/sys/dev/i2c: em3027.c

Log Message:
G/c trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/em3027.c

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



CVS commit: src/sys/dev/i2c

2020-12-23 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Dec 23 17:10:37 UTC 2020

Modified Files:
src/sys/dev/i2c: em3027.c

Log Message:
Add direct-config support.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/em3027.c

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



CVS commit: src/sys/dev/i2c

2020-12-22 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Wed Dec 23 07:06:26 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
Handle pins that represent alerts.
  split out common code for alert and indicator pins
  change the previously debug-only callout to work for alerts too
  split out common code for alerts in refresh and in callout
While here, remove redundant variable used for checking sysmon setup.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-12-10 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Thu Dec 10 17:02:51 UTC 2020

Modified Files:
src/sys/dev/i2c: adm1021.c

Log Message:
Handle failing to acquire the iic bus.
Better handle errors when attaching sysmon sensors.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/i2c/adm1021.c

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



CVS commit: src/sys/dev/i2c

2020-12-06 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sun Dec  6 10:09:36 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
Don't read from the chip when matching, fail the attach instead (requested
by jmcneill).  Reverts previous.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-12-05 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Dec  5 15:02:29 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
Return "match_result", not "1".  Pointed out by jmcneill.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-12-05 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Dec  5 14:50:33 UTC 2020

Modified Files:
src/sys/dev/i2c: hytp14.c si70xx.c

Log Message:
Make sure that we set sc->sc_sme to NULL in failure cases in order to avoid
calling sysmon_envsys_unregister() with an invalid struct when we detach.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/si70xx.c

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



CVS commit: src/sys/dev/i2c

2020-12-05 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Dec  5 14:48:09 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
When matching, try a read in case this is an optional device and isn't
actually present.
Make sure that we set sc->sc_sme to NULL in failure cases and when we
detach in order to avoid calling sysmon_envsys_unregister() with an
invalid struct.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-11-26 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu Nov 26 12:53:03 UTC 2020

Modified Files:
src/sys/dev/i2c: g760a.c

Log Message:
Fix build and improve error handling


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/g760a.c

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



CVS commit: src/sys/dev/i2c

2020-10-31 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Oct 31 14:38:54 UTC 2020

Modified Files:
src/sys/dev/i2c: pcagpio.c

Log Message:
Detach led's in our detach routine.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-10-31 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Sat Oct 31 14:39:31 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
Detach led's and sysmon in our detach routine.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-10-28 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Thu Oct 29 06:55:51 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: pcf8574.c

Log Message:
Add a driver for the PCF8574 I/O expander, used as a GPIO in some sparc64
hardware.
The driver currently handles pins configured as LED or INDICATOR and adds
them to the LED and sysmon_envsys subsystems, respectively.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/dev/i2c/files.i2c
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/pcf8574.c

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



CVS commit: src/sys/dev/i2c

2020-10-28 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Thu Oct 29 06:50:53 UTC 2020

Modified Files:
src/sys/dev/i2c: pcagpio.c

Log Message:
Handle the change in the sparc64 OFW patching, where we now encode the
GPIO pin type in the pin name (only LED types are currently handled).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-10-27 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Tue Oct 27 20:13:21 UTC 2020

Modified Files:
src/sys/dev/i2c: pcagpio.c

Log Message:
Add additional debugging output.
Track more chip state in the softc and check the chip state via a timer.
This allows us to easily observe changes caused by external events
(e.g. disk removal or PSU failure).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-08-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Aug 21 21:28:22 UTC 2020

Modified Files:
src/sys/dev/i2c: dstemp.c

Log Message:
more OF -> properties for sensor names, this should be the last one


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/dstemp.c

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



CVS commit: src/sys/dev/i2c

2020-08-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Aug 21 20:44:38 UTC 2020

Modified Files:
src/sys/dev/i2c: adm1021.c

Log Message:
get sensore names from properties, remove OF code


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/i2c/adm1021.c

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



CVS commit: src/sys/dev/i2c

2020-08-21 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Aug 21 20:41:43 UTC 2020

Modified Files:
src/sys/dev/i2c: lm75.c

Log Message:
get sensor name from properties, remove macppc-specific OF support


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/i2c/lm75.c

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



CVS commit: src/sys/dev/i2c

2020-07-12 Thread Kimmo Suominen
Module Name:src
Committed By:   kim
Date:   Sun Jul 12 08:48:49 UTC 2020

Modified Files:
src/sys/dev/i2c: dbcool_var.h

Log Message:
Make this compile


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/dbcool_var.h

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



CVS commit: src/sys/dev/i2c

2020-07-11 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sun Jul 12 06:42:33 UTC 2020

Modified Files:
src/sys/dev/i2c: dbcool.c

Log Message:
in sysctl_dbcool_behavior() - actually use the array index when translating
text from sysctl -w *.behavior=
now this actually works on my sb2500's two adm1030s


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/i2c/dbcool.c

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



CVS commit: src/sys/dev/i2c

2020-07-11 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sun Jul 12 06:38:57 UTC 2020

Modified Files:
src/sys/dev/i2c: dbcool.c

Log Message:
get sensor names from device properties if possible


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/i2c/dbcool.c

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



CVS commit: src/sys/dev/i2c

2020-06-30 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Jun 30 19:02:42 UTC 2020

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
 If an error occurred in sme_refresh function, pass ENVSYS_SINVALID.
OK'd by pgoyette.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 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: src/sys/dev/i2c

2020-06-29 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 29 09:24:07 UTC 2020

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
 Check the return value of iic_acquire_bus(). This function may fail.

 One of the case is driver's detaching phase on shutdown. mutex_tryenter()
might fail and return with EBUSY. To avoid calling iic_release_bus() without
taking lock, check the return value of iic_acquire_bus().


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 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: src/sys/dev/i2c

2020-06-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Jun 29 06:01:30 UTC 2020

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
KNF. No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 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: src/sys/dev/i2c

2020-06-26 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Jun 26 10:06:57 UTC 2020

Modified Files:
src/sys/dev/i2c: adm1026.c

Log Message:
Avoid creating a full temporary softc struct on the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/adm1026.c

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



CVS commit: src/sys/dev/i2c

2020-04-24 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Apr 24 12:38:31 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: asms.c

Log Message:
a very preliminary driver for the acclerometer found in later *Books
register definitions from OpenBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/asms.c
cvs rdiff -u -r1.110 -r1.111 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.



CVS commit: src/sys/dev/i2c

2020-04-19 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Apr 19 17:08:14 UTC 2020

Modified Files:
src/sys/dev/i2c: i2c_exec.c

Log Message:
In iic_acquire_bus(), unlock the bus lock if the back-end returns an
error from its acquire-bus function.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/i2c_exec.c

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



CVS commit: src/sys/dev/i2c

2020-02-28 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Feb 28 13:18:25 UTC 2020

Modified Files:
src/sys/dev/i2c: dstemp.c

Log Message:
- document the config register
- do some setup and send a start command
- mark the sensor as invalid if readings are out of range
now this works properly on my PCI-X G5


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/dstemp.c

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



CVS commit: src/sys/dev/i2c

2020-02-16 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Feb 16 22:43:27 UTC 2020

Modified Files:
src/sys/dev/i2c: axp20x.c
Removed Files:
src/sys/dev/i2c: axp20xvar.h

Log Message:
- Don't use I2C_F_POLL.
- G/C the non-FDT entry points; nothing uses them anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/axp20x.c
cvs rdiff -u -r1.3 -r0 src/sys/dev/i2c/axp20xvar.h

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



CVS commit: src/sys/dev/i2c

2020-02-16 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Feb 16 20:32:29 UTC 2020

Modified Files:
src/sys/dev/i2c: axppmic.c

Log Message:
Don't access the i2c bus in interrupt context.  Instead, mask the
interrupt and process it on a work queue.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/i2c/axppmic.c

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



CVS commit: src/sys/dev/i2c

2020-02-15 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Feb 15 23:42:01 UTC 2020

Modified Files:
src/sys/dev/i2c: gttwsi_core.c

Log Message:
Interrupt-driven I/O seems to completely go off the rails, at least
on AllWinner implementations of this controller, so force polled mode
for now.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/gttwsi_core.c

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



CVS commit: src/sys/dev/i2c

2020-02-01 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sun Feb  2 06:43:14 UTC 2020

Modified Files:
src/sys/dev/i2c: pcagpio.c

Log Message:
break long lines


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-02-01 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Sun Feb  2 06:41:27 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c pcagpio.c

Log Message:
attach LEDs according to info passed as device properties


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/dev/i2c/files.i2c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-01-28 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Wed Jan 29 05:27:05 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: pcagpio.c

Log Message:
the beginning of a driver for Philips Semiconductors PCA 9555 and 9556
GPIO controllers, found in Sun Fire v210 and some G5 macs.
Only prints configuration and line status so far.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/dev/i2c/files.i2c
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/pcagpio.c

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



CVS commit: src/sys/dev/i2c

2020-01-14 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan 15 06:09:37 UTC 2020

Modified Files:
src/sys/dev/i2c: at24cxx.c

Log Message:
tsleep -> kpause


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/i2c/at24cxx.c

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



CVS commit: src/sys/dev/i2c

2020-01-14 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan 15 05:56:57 UTC 2020

Modified Files:
src/sys/dev/i2c: tsl256x.c

Log Message:
tsleep -> kpause


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/tsl256x.c

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



CVS commit: src/sys/dev/i2c

2020-01-13 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan 13 12:53:46 UTC 2020

Modified Files:
src/sys/dev/i2c: gttwsi_core.c

Log Message:
Fix silly mistake in rev 1.12.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/gttwsi_core.c

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



CVS commit: src/sys/dev/i2c

2020-01-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon Jan 13 09:53:54 UTC 2020

Modified Files:
src/sys/dev/i2c: gttwsi_core.c

Log Message:
Fix debug printf formats.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/i2c/gttwsi_core.c

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



CVS commit: src/sys/dev/i2c

2020-01-12 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan 13 00:09:28 UTC 2020

Modified Files:
src/sys/dev/i2c: gttwsi_core.c

Log Message:
Improve diagnostic messages:
- Pass an additional argument to gttwsi_wait() to indicate what's
  going on, and report that, along with the error code from
  cv_timedwait(), if a timeout occurs.
- In gttwsi_send_stop(), if we don't get the expected NRS status,
  report which status we *did* get when a timeout occurs.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/gttwsi_core.c

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



CVS commit: src/sys/dev/i2c

2020-01-11 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 11 22:21:26 UTC 2020

Modified Files:
src/sys/dev/i2c: gttwsi_core.c

Log Message:
In gttwsi_wait(), don't use cv_timedwait_sig() -- there's no reason to
catch signals here, and the code would need to handle them properly, which
this code does not.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/gttwsi_core.c

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



CVS commit: src/sys/dev/i2c

2020-01-08 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  9 04:04:01 UTC 2020

Modified Files:
src/sys/dev/i2c: ihidev.c ihidev.h

Log Message:
Re-enable the intr / mask / softint / unmask dance now that the x86
interrupt issue is fixed.  Verified working by ryoon@ (thanks!).


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/ihidev.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/ihidev.h

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



CVS commit: src/sys/dev/i2c

2020-01-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan  4 02:21:15 UTC 2020

Modified Files:
src/sys/dev/i2c: as3722.c

Log Message:
No need to use I2C_F_POLL here.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/i2c/as3722.c

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



CVS commit: src/sys/dev/i2c

2020-01-03 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Jan  3 18:00:05 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: cwfg.c

Log Message:
Add driver for CellWise CW2015 Fuel Gauge IC.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/cwfg.c
cvs rdiff -u -r1.106 -r1.107 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.



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Jan  3 01:17:29 UTC 2020

Modified Files:
src/sys/dev/i2c: rkpmic.c

Log Message:
If the rockchip,system-power-controller property is present, try to power off 
with the PMIC


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/rkpmic.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Jan  3 01:00:09 UTC 2020

Modified Files:
src/sys/dev/i2c: es8316ac.c

Log Message:
Avoid sleeping while the audio intr lock is held.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/es8316ac.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Jan  2 22:06:59 UTC 2020

Modified Files:
src/sys/dev/i2c: files.i2c
Added Files:
src/sys/dev/i2c: es8316ac.c

Log Message:
Add driver for Everest Semi ES8316 Low Power Audio CODEC


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/i2c/es8316ac.c
cvs rdiff -u -r1.104 -r1.105 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.



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 19:24:48 UTC 2020

Modified Files:
src/sys/dev/i2c: m41st84.c

Log Message:
- Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/i2c/m41st84.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 19:11:12 UTC 2020

Modified Files:
src/sys/dev/i2c: m41t00.c

Log Message:
- Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/i2c/m41t00.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 19:00:34 UTC 2020

Modified Files:
src/sys/dev/i2c: r2025.c s390.c x1226.c

Log Message:
Use todr_gettime_ymdhms / todr_settime_ymdhms.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/r2025.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/s390.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/i2c/x1226.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 18:57:58 UTC 2020

Modified Files:
src/sys/dev/i2c: max6900.c

Log Message:
- Use todr_gettime_ymdhms / todr_settime_ymdhms.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/i2c/max6900.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 17:40:27 UTC 2020

Modified Files:
src/sys/dev/i2c: x1226.c

Log Message:
- No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/x1226.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 17:26:37 UTC 2020

Modified Files:
src/sys/dev/i2c: s390.c

Log Message:
- No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/s390.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 17:17:36 UTC 2020

Modified Files:
src/sys/dev/i2c: rs5c372.c

Log Message:
- No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/rs5c372.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 17:10:00 UTC 2020

Modified Files:
src/sys/dev/i2c: rkpmic.c

Log Message:
No need to use I2C_F_POLL here.

XXX This entire driver needs to have its error reporting overhauled.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/rkpmic.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 17:03:05 UTC 2020

Modified Files:
src/sys/dev/i2c: r2025.c

Log Message:
- No need to use I2C_F_POLL here.
- Correctly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/r2025.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 16:53:05 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8583.c

Log Message:
No need to use I2C_F_POLL here.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/i2c/pcf8583.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 16:48:05 UTC 2020

Modified Files:
src/sys/dev/i2c: pcf8563.c

Log Message:
- No need to use I2C_F_POLL here.
- Properly propagate errors up the stack.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/pcf8563.c

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



CVS commit: src/sys/dev/i2c

2020-01-02 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Thu Jan  2 16:33:08 UTC 2020

Modified Files:
src/sys/dev/i2c: max6900.c

Log Message:
No need to use I2C_F_POLL here.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/max6900.c

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



  1   2   3   4   5   >