]> git.ipfire.org Git - thirdparty/u-boot.git/commit
usb: onboard-hub: Use the ofnode to check if the peer-hub was probed
authorLukasz Czechowski <lukasz.czechowski@thaumatec.com>
Tue, 22 Jul 2025 09:55:33 +0000 (11:55 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Jul 2025 13:57:17 +0000 (07:57 -0600)
commita4446e13dba65f2e56e0d7a97875f76e5199015c
treefcdcd0429617dba8c14a1a84f4039aa1209a1197
parent5a8dd2e0c848135b5c96af291aa96e79acc923ec
usb: onboard-hub: Use the ofnode to check if the peer-hub was probed

Currently the check in usb_onboard_hub_bind is relying on specific
compatible string for the Michrochip USB5744. Replace this with
more generic approach that will allow to add new types of devices
to the of_match table. Because the driver only needs to bind one
"half" of the hub, the peer-hub node is used to find out if it
was already done. In case peer-hub was bound, -ENODEV is returned.

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Lukasz Czechowski <lukasz.czechowski@thaumatec.com>
common/usb_onboard_hub.c