HomeFreeBSD

bus_if: Add a default implementation of get_property

Description

bus_if: Add a default implementation of get_property

There are multiple buses that pretend to be ofw compatible,
e.g ofw_pci, mii_fdt. We now need to provide an implementation
of BUS_GET_PROPERTY for every one of them. Instead of modifying
them one by one it's better to just provide a default
implementation that simply traverses up the device tree.
Remove the now unneeded BUS_GET_PROPERTY implementation in mii_fdt.

Reviewed by: andrew, bz
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34031

(cherry picked from commit 206dc82bc3fc5e1d90200e189ce5f2240dfec874)

Details

Provenance
kdAuthored on Jan 25 2022, 10:10 AM
mwCommitted on Mar 29 2022, 10:24 PM
Reviewer
andrew
Differential Revision
D34031: bus_if: Add a default implementation of get_property
Parents
rGf0a6f99b2a3a: miibus: Add support for mapping OFW nodes to PHY devices
Branches
Unknown
Tags
Unknown