freebsd-dev/sys
Ian Lepore 9f8df20c85 Several small fixes for the gpioths (temp/humidity sensor) driver.
At the end of a read cycle, set the gpio pin to INPUT rather than OUTPUT.
The state of the single-wire "bus" when idle should be high; setting the
pin to input allows the external pullup to pull the line high.  Setting it
to output (and leaving it driving low) was leading a good read cycle followed
by one that would fail, and it just continued like that forever, effectively
reading the sensor once every 10 seconds instead of 5.

In the attach function, do an initial read from the device before registering
the sysctls for accessing the last-read values, to prevent reading spurious
values for the first 5 seconds after the driver attaches.

Do a callout_drain() in the detach function to prevent crashes after
unloading the module.
2019-12-08 20:13:42 +00:00
..
amd64 amd64: properly set the start of the io permission bitmap for BSP 2019-12-07 00:23:19 +00:00
arm Fix the ARM64 build, include the necessary <sys/mutex.h> header. 2019-12-06 20:05:08 +00:00
arm64 Add support for booting kernel directly from U-Boot using booti command. 2019-12-07 16:14:23 +00:00
bsm Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
cam ses: sanitize illegal strings in SES element descriptors 2019-12-06 00:06:05 +00:00
cddl Fix an inverted condition introduced in r353539. 2019-12-06 23:49:37 +00:00
compat sysent: Reduce duplication and improve readability. 2019-12-06 23:59:23 +00:00
conf powerpc: Use builtins for fls/flsl 2019-12-08 04:36:42 +00:00
contrib Include fin, the packet information structure (fr_info_t), in the 2019-11-28 00:46:33 +00:00
crypto Fix the armv8 crypto driver after r354170. 2019-10-30 10:41:10 +00:00
ddb ddb(4): Add some support for lexing IPv6 addresses 2019-09-09 16:32:23 +00:00
dev Several small fixes for the gpioths (temp/humidity sensor) driver. 2019-12-08 20:13:42 +00:00
dts
fs Delete an unused external declaration. 2019-12-08 16:59:36 +00:00
gdb gdb(4): Implement support for NoAckMode 2019-10-17 22:37:25 +00:00
geom Remove some branching from GEOM_DISK hot path. 2019-12-06 16:48:36 +00:00
gnu Import DTS files for riscv from Linux 5.4 2019-12-03 09:12:53 +00:00
i386 sysent: Reduce duplication and improve readability. 2019-12-06 23:59:23 +00:00
isa
kern Handle multiple clock interrupts simultaneously in sched_clock(). 2019-12-08 01:17:38 +00:00
kgssapi
libkern Port the NetBSD KCSAN runtime to FreeBSD. 2019-11-21 11:22:08 +00:00
mips Regularize my copyright notice 2019-12-04 16:56:11 +00:00
modules Add module build stuff for gpioths(4), a driver for DHT11/DHT22 sensors. 2019-12-07 17:54:40 +00:00
net Use a void * argument to callout handlers instead of timeout_t casts. 2019-12-05 18:47:29 +00:00
net80211 Don't use if_maddr_rlock() in 802.11, use epoch(9) directly instead. 2019-10-10 23:55:33 +00:00
netgraph Fix regression from r353026. Pointer was increased instead of value 2019-11-02 03:09:17 +00:00
netinet Remove the extra epoch tracker change sneaked into r355449 and was not part 2019-12-06 22:20:26 +00:00
netinet6 Update comment. 2019-12-06 16:53:42 +00:00
netipsec Fix m_pullup() problem after removing PULLDOWN_TESTs and KAME EXT_*macros. 2019-12-01 00:22:04 +00:00
netpfil pf: Add endline to all DPFPRINTF() 2019-11-24 13:53:36 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Prevent potential underflow in ibcore. 2019-11-15 11:46:53 +00:00
opencrypto kTLS support for TLS 1.3 2019-09-27 19:17:40 +00:00
powerpc powerpc: Use builtins for fls/flsl 2019-12-08 04:36:42 +00:00
riscv Regularize my copyright notice 2019-12-04 16:56:11 +00:00
rpc Change r355157 to make svc_rpc_gss_lifetime_max a static. 2019-11-28 02:18:51 +00:00
security Instead of looking up a predecessor or successor to the current map 2019-11-20 16:06:48 +00:00
sparc64 Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sys Handle multiple clock interrupts simultaneously in sched_clock(). 2019-12-08 01:17:38 +00:00
teken Adjust teken to allow build as part of loader 2019-09-05 18:07:40 +00:00
tests
tools makesyscalls.lua: improve config processing 2019-12-06 22:45:36 +00:00
ufs Currently the breadn_flags() and getblkx() interfaces are passed 2019-12-03 23:07:09 +00:00
vm Fix two problems with r355149. The sysctl name collision code assumed that 2019-12-08 01:55:23 +00:00
x86 x86: Restore the critical section around whole ipi_bitmap_handler() if 2019-12-07 00:28:08 +00:00
xdr
xen
Makefile