Jonas Karlman 5ccfdd8a83 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>
2023-09-13 15:52:20 -04:00
..
2023-09-04 10:51:58 -04:00
2023-02-10 07:41:39 -05:00
2023-05-02 14:23:58 -04:00
2023-08-17 12:29:21 -04:00
2023-07-21 09:00:39 +02:00
2023-08-21 17:32:17 -04:00
2023-08-21 17:32:17 -04:00
2023-03-02 17:45:58 -05:00
2023-04-21 15:16:01 +08:00
2023-08-03 09:40:49 -04:00
2023-08-21 17:32:17 -04:00
2023-04-25 15:31:28 -04:00