Page MenuHomeFreeBSD

Add ofw_bus_find_child_by_phandle, a helper routine to find a device_t child matchig a given phandle_t.
ClosedPublic

Authored by imp on Jun 19 2015, 6:33 PM.
Tags
None
Referenced Files
F149983985: D2871.id6336.diff
Sat, Mar 28, 1:59 PM
Unknown Object (File)
Fri, Mar 27, 6:45 PM
Unknown Object (File)
Tue, Mar 24, 9:47 PM
Unknown Object (File)
Thu, Mar 12, 3:07 PM
Unknown Object (File)
Thu, Mar 12, 3:02 PM
Unknown Object (File)
Feb 26 2026, 3:31 AM
Unknown Object (File)
Feb 8 2026, 2:15 PM
Unknown Object (File)
Jan 31 2026, 5:43 AM
Subscribers

Details

Summary

Use ofw_bus_find_child_device_by_phandle to see if the child we're
adding already exists and if so just return that. The typical use case
is from identify routines, which shouldn't be adding multiple copies
of the same phandle_t to the gpiobus.

...us. Only one per phandle_t is needed
(or expected by the current code).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

imp retitled this revision from to Add ofw_bus_find_child_by_phandle, a helper routine to find a device_t child matchig a given phandle_t..
imp updated this object.
imp edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jun 19 2015, 6:50 PM
loos edited edge metadata.
This revision was automatically updated to reflect the committed changes.