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

(cherry picked from commit accda781531788a814bc438e1e96ef544c12aeaf)

Details

Provenance
mhorneAuthored on Mar 8 2024, 2:09 PM
Reviewer
manu
Differential Revision
D44268: simple_mfd: don't attach children twice
Parents
rG29701960b3ba: clk_fixed: call clkdom_dump() for verbose boot
Branches
Unknown
Tags
Unknown