[PATCH 0/6] phy: Fix use of generic_phy_valid() helper
Jonas Karlman
jonas at kwiboo.se
Fri Sep 1 00:16:32 CEST 2023
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.
Patch 1-2 fixes issues where generic_phy_valid() erroneously report a
phy that has failed to be initialized as valid.
Patch 3-6 replace direct access to phy->dev with generic_phy_valid().
Jonas Karlman (6):
phy: Set phy->dev to NULL when generic_phy_get_by_name() fails
phy: Set phy->dev to NULL when generic_phy_get_by_index_nodev() fails
usb: dwc3: Use generic_phy_valid() helper
scsi: ceva: Use generic_phy_valid() helper
net: zynq: Use generic_phy_valid() helper
video: rockchip: dw_mipi_dsi: Use generic_phy_valid() helper
arch/sandbox/dts/test.dts | 11 +++++++++++
drivers/ata/sata_ceva.c | 2 +-
drivers/net/zynq_gem.c | 3 ++-
drivers/phy/phy-uclass.c | 4 ++++
drivers/usb/dwc3/dwc3-generic.c | 4 +---
drivers/video/rockchip/dw_mipi_dsi_rockchip.c | 6 +++---
test/dm/phy.c | 18 +++++++++++++++++-
7 files changed, 39 insertions(+), 9 deletions(-)
--
2.42.0
More information about the U-Boot
mailing list