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)
Tue, Nov 12, 2:25 PM
Unknown Object (File)
Sep 25 2024, 8:35 AM
Unknown Object (File)
Sep 22 2024, 5:31 PM
Unknown Object (File)
Sep 19 2024, 3:31 PM
Unknown Object (File)
Sep 19 2024, 12:59 PM
Unknown Object (File)
Sep 19 2024, 12:31 AM
Unknown Object (File)
Sep 18 2024, 9:08 PM
Unknown Object (File)
Sep 16 2024, 9:28 AM
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