]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: Return success from generic_setup_phy() when phy is not found
authorJonas Karlman <jonas@kwiboo.se>
Thu, 31 Aug 2023 23:07:10 +0000 (23:07 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2023 19:52:21 +0000 (15:52 -0400)
commit1a4293e001d1063401b6f94104684e38d6e401c9
tree2528d45c92d9b8fca0c77c5c2d6dd74c10ec89f2
parentbd78f2c2c28ca93311a7e1cdddefbd08a7cf9f70
phy: Return success from generic_setup_phy() when phy is not found

Restore the old behavior of ehci_setup_phy() and ohci_setup_phy() to
return success when generic_phy_get_by_index() return -ENOENT.

Fixes: 84e561407a5f ("phy: Add generic_{setup,shutdown}_phy() helpers")
Fixes: 10005004db73 ("usb: ohci: Make usage of generic_{setup,shutdown}_phy() helpers")
Fixes: 083f8aa978a8 ("usb: ehci: Make usage of generic_{setup,shutdown}_phy() helpers")
Fixes: 75341e9c16aa ("usb: ehci: Remove unused ehci_{setup,shutdown}_phy() helpers")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
drivers/phy/phy-uclass.c
test/dm/phy.c