Page MenuHomeFreeBSD

simple_mfd: don't attach children twice
ClosedPublic

Authored by mhorne on Mar 7 2024, 6:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 4:01 AM
Unknown Object (File)
Fri, Apr 19, 2:22 AM
Unknown Object (File)
Mar 9 2024, 5:26 PM
Unknown Object (File)
Mar 8 2024, 2:56 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable