u-boot/drivers/usb/dwc3
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: 142d50fbce ("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
..
core.c usb: dwc3: Drop support for "snps, ref-clock-period-ns" DT property 2022-11-27 15:34:56 +01:00
core.h usb: dwc3: Program GFLADJ 2022-11-27 15:34:56 +01:00
dwc3-generic.c usb: dwc3: Use generic_phy_valid() helper 2023-09-13 15:52:20 -04:00
dwc3-generic.h usb: dwc3-generic: Add the size of regs property to glue structure 2023-02-22 19:40:11 +01:00
dwc3-layerscape.c usb: dwc3: add layerscape support 2021-11-09 17:18:23 +05:30
dwc3-meson-g12a.c usb: dwc3-meson-g12a: force mode on child add/removal 2023-01-17 09:27:17 +01:00
dwc3-meson-gxl.c usb: dwc3-meson-gxl: force mode on child add/removal 2023-01-20 16:21:31 +01:00
dwc3-omap.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dwc3-uniphier.c usb: dwc3-uniphier: Use dwc3-generic instead of xhci-dwc3 2023-02-22 19:40:11 +01:00
ep0.c usb: dwc3: Fix not calling dev_xxx with a device 2020-09-30 08:53:54 -04:00
gadget.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
gadget.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.h common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
Kconfig usb: dwc3-meson-g12a: Select PHY instead of imply PHY 2023-03-02 22:42:27 +01:00
linux-compat.h lib: string: Implement strlcat 2021-04-12 17:44:55 -04:00
Makefile usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver 2022-07-15 14:10:39 +02:00
samsung_usb_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ti_usb_phy.c usb: dwc3: ti: Fix not calling dev_err with a device 2020-09-30 08:53:58 -04:00