The NetBSD Project

CVS log for src/sys/dev/i2c/sht3x.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / i2c

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 27 23:11:25 2022 UTC (9 months, 1 week ago) by brad
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.6: +2 -466 lines
Diff to previous 1.6 (colored)



After testing with a couple of more samples of the SHT3x sensor chip
it was found that the datasheet does not appear to provide enough
information to make use of the alarm and interrupt function work.  So
actually remove the dead code that was an attempt at making that all
work.  Adjust the man page to mention that this.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 31 19:30:16 2022 UTC (10 months, 1 week ago) by pgoyette
Branch: MAIN
Changes since 1.5: +12 -10 lines
Diff to previous 1.5 (colored)

For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence.  This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

	devsw_attach()
	config_init_component() or config_cf*_attach()
	...
	config_fini_component() or config_cf*_detach()
	devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
	1. compile without build break
	2. no related test failures from atf
	3. modload/modunload work as well as
	   before.

No functional device testing done, since I don't have any
of these devices.  Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken;  see kern/56772.  This commit does not break
any additional modules (as far as I know).

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 30 00:06:50 2022 UTC (10 months, 1 week ago) by pgoyette
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

These modules need to depend on iic, not just on i2cexec.  (They will
still recursively get i2cexec since the iic depends on it.)

Partial fix for kern/56772

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 14 18:36:13 2021 UTC (14 months, 3 weeks ago) by brad
Branch: MAIN
Changes since 1.3: +18 -12 lines
Diff to previous 1.3 (colored)



Fix some regressions that were introduced.

One must make sure that you release the i2c bus if you acquire.

One must not try to release the i2c bus if you failed to acquire it.

One can't leave too early from the single-shot refresh without
checking the status register as there may have been a reset
and releasing the i2c bus.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Nov 13 13:36:42 2021 UTC (14 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.2: +466 -3 lines
Diff to previous 1.2 (colored)

Brad wants the __did_not_work code back :-)

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 12 22:16:27 2021 UTC (14 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.1: +347 -782 lines
Diff to previous 1.1 (colored)

simplify the code and remove unused (it is in CVS anyway). Try to merge
duplicate code. Follow KNF. Brad, please test!

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 6 13:34:40 2021 UTC (15 months ago) by brad
Branch: MAIN



Driver for the Sensirion SHT30/SHT31/SHT35 temperature and humidity
sensor such as:

https://www.adafruit.com/product/2857

This is a higher priced sensor with a lot of features, including the
ability to do sub-second periodic updates.  The driver supports
everything about the sensor except for the alert pin.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>