Page MenuHomeFreeBSD

ofw_pci: Fix probing
ClosedPublic

Authored by kd on Jun 30 2021, 10:01 AM.
Tags
None
Referenced Files
F81693598: D30953.id91555.diff
Sat, Apr 20, 1:22 AM
Unknown Object (File)
Fri, Apr 5, 2:12 PM
Unknown Object (File)
Thu, Mar 28, 11:11 AM
Unknown Object (File)
Mar 3 2024, 6:46 PM
Unknown Object (File)
Feb 9 2024, 9:10 PM
Unknown Object (File)
Dec 23 2023, 11:31 AM
Unknown Object (File)
Dec 12 2023, 4:42 PM
Unknown Object (File)
Nov 15 2023, 11:35 AM
Subscribers
None

Details

Summary

phandle_t is a uint32_t type, <= 0 comparison doesn't work with it as intended.
This caused the ofw_pci code to attach to PCI bus on ACPI based systems.
Since 3eae4e106ac7 ofw subsystem can only return -1 for invalid nodes.
Use that.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kd requested review of this revision.Jun 30 2021, 10:01 AM
kd created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Jul 1 2021, 6:36 PM
Closed by commit rG94287656264f: ofw_pci: fix probing for non-DT cases (authored by kd, committed by mw). · Explain Why
This revision was automatically updated to reflect the committed changes.