commit | 5ccfdd8a8320001ac08ad03a2a36bfd45c7c151c | [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 | 14639bf14d824d9fbcfd918f0e7924c7f7065422 [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>