commit | fd5c3c2f0d8f13850e4b055bdcab1db1d169e0ab | [log] [tgz] |
---|---|---|
author | Jonas Karlman <jonas@kwiboo.se> | Thu Aug 31 22:16:36 2023 +0000 |
committer | Tom Rini <trini@konsulko.com> | Wed Sep 13 15:52:20 2023 -0400 |
tree | 1a0fb001a807744c18c5238b0cec18ac87d92530 | |
parent | 9f89e6878a3e8c7d42da3331700be7beb8915994 [diff] |
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>