freebsd-src/sys/dev/iicbus
Vladimir Kondratyev 018cb11cb7 iichid(4): Do not power down opened device in attach handler
Some iichid(4) child devices, currently hkbd(4) only, opens parent
device in their attach handlers. That breaks internal iichid(4) state
leading to rejecting any incoming data on software and hardware levels.

Fix it with adding of extra state check in iichid(4) attach handler.

Reported by:	many
Submitted by:	trasz (initial version)
PR:		280290
MFC after:	3 days
2024-11-09 08:11:09 +03:00
..
adc sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
controller vf_i2c: Don't hold a mutex across bus_generic_detach 2024-10-31 15:49:41 -04:00
gpio sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mux newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
pmic Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
pwm sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rtc DS3231: converstion -> conversion 2024-10-22 19:23:45 +01:00
sensor sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
acpi_iicbus.c newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY 2024-07-24 22:23:02 -06:00
icee.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
if_ic.c net: Remove unneeded NULL check for the allocated ifnet 2024-06-28 18:16:29 +08:00
iic_recover_bus.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
iic_recover_bus.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
iic.c newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY 2024-07-24 22:23:02 -06:00
iic.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
iicbb_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
iicbb.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
iicbus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
iicbus.c iicbus: Use a bus_child_deleted method to free ivars for children 2024-11-01 10:09:50 -04:00
iicbus.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
iichid.c iichid(4): Do not power down opened device in attach handler 2024-11-09 08:11:09 +03:00
iiconf.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
iiconf.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
iicsmb.c newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY 2024-07-24 22:23:02 -06:00
ofw_iicbus_if.m spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ofw_iicbus.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00