HomeFreeBSD

iichid(4): Do not power down opened device in attach handler

Description

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

Details

Provenance
wulfAuthored on Nov 8 2024, 7:23 PM
Parents
rGf239981ed58c: proc_rwmem check PRIV_PROC_MEM_WRITE when writing
Branches
Unknown
Tags
Unknown