]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dwc3: Use generic_phy_valid() helper
authorJonas Karlman <jonas@kwiboo.se>
Thu, 31 Aug 2023 22:16:36 +0000 (22:16 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 13 Sep 2023 19:52:20 +0000 (15:52 -0400)
commit5ccfdd8a8320001ac08ad03a2a36bfd45c7c151c
tree1a0fb001a807744c18c5238b0cec18ac87d92530
parent14639bf14d824d9fbcfd918f0e7924c7f7065422
usb: dwc3: Use generic_phy_valid() helper

The documentation for struct phy state that "The content of the
structure is managed solely by the PHY API and PHY drivers".

Change to use the generic_phy_valid() helper to check if phy is valid.
Also remove setting phy->dev to NULL now that generic_phy_get_by_name()
properly initialize phy->dev to NULL.

Fixes: 142d50fbce7c ("usb: dwc3: Add support for usb3-phy PHY configuration")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
drivers/usb/dwc3/dwc3-generic.c