Page MenuHomeFreeBSD

gpio: remove redundant calls to bus_attach_children
ClosedPublic

Authored by vexeduxr on Tue, Jul 1, 2:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 6, 11:25 AM
Unknown Object (File)
Sun, Jul 6, 12:17 AM
Unknown Object (File)
Sun, Jul 6, 12:14 AM
Unknown Object (File)
Fri, Jul 4, 2:08 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65152
Build 62035: arc lint + arc unit

Event Timeline

Strictly speaking, they are not entirely useless. A multi-function device can expose multiple different buses, so it can add another child when gpiobus_attach_bus() is called. In an ideal world, we should have an explicit bus_attach_children() function at the end of each respective driver (especially if it exposes multiple functions).
However, this is only a theoretical notice , nothing more.

This revision is now accepted and ready to land.Wed, Jul 2, 11:20 AM

Revert the max77620 and as3722 changes. They are handled differently.

This revision now requires review to proceed.Wed, Jul 2, 3:53 PM

We could create a version gpiobus_attach_bus that doesn't call bus_attach_children for use by multi-function devices. That would mean all buses are added together for more control.

This revision is now accepted and ready to land.Wed, Jul 2, 4:45 PM

This looks good. No need to hold things up for Andy's suggestion, but I think I like it for future consideration.