HomeFreeBSD

Fix bug in ofwbus_release_resource() for non-ofwbus descendants

Description

Fix bug in ofwbus_release_resource() for non-ofwbus descendants

Resource list for devices that are not ofwbus descendants, but
got to ofwbus method via bus_generic_release_resource() call chain,
cannot be found using BUS_GET_RESOURCE_LIST() used by ofwbus.
In that case, changing device's resource list should be avoided
(will not contain resource list prepared by ofw or simplebus).

Pointy-hat to: zbb
Reviewed by: wma
Obtained from: Semihalf
Sponsored by: Cavium
Differential Revision: https://reviews.freebsd.org/D5304

Details

Provenance
zbbAuthored on
Reviewer
wma
Differential Revision
D5304: Fix bug in ofwbus_release_resource() for non-ofwbus descendants
Parents
rS295753: Fix ThunderX external PEM bus offset
Branches
Unknown
Tags
Unknown