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
Unknown Object (File)
Dec 27 2024, 12:24 AM
Unknown Object (File)
Dec 13 2024, 8:50 AM
Unknown Object (File)
Dec 7 2024, 9:11 PM
Unknown Object (File)
Nov 30 2024, 12:00 AM
Unknown Object (File)
Nov 29 2024, 7:44 AM
Unknown Object (File)
Oct 5 2024, 12:54 PM
Unknown Object (File)
Sep 30 2024, 7:02 AM
Unknown Object (File)
Sep 23 2024, 9:31 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 Not Applicable
Unit
Tests Not Applicable

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.