HomeFreeBSD

simple_mfd: don't attach children twice

Description

simple_mfd: don't attach children twice

Trying to probe+attach the child device at the point it is added comes
before the syscon handle is set up (if relevant). It will therefore be
unavailable to the attach method which is expecting it, and the first
attempt to attach the device will fail.

Just rely on the call to bus_generic_attach() at the end of the function
to perform probe+attach of dev's children.

Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44268

Details

Provenance
mhorneAuthored on Mar 8 2024, 2:09 PM
Reviewer
manu
Differential Revision
D44268: simple_mfd: don't attach children twice
Parents
rG08635c51d1e3: clkdom_dump(): improve output text
Branches
Unknown
Tags
Unknown