Skip to content

RFC phy: core: better support for multi-phy in phy-core

Kishon Vijay Abraham I linux-arm-kernel linux-samsung-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2phy: core: Fix of_phy_provider_lookup to return PHY provider for sub nodedrivers/phy/phy-core.c+9 -11 reply
2/2phy: core: the node pointer of PHY need not be the same as that of PHY providerDocumentation/phy.txt drivers/phy/phy-bcm-kona-usb2.c drivers/phy/phy-core.c +12 more+48 -283 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLee Jones
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/2] phy: core: better support for multi-phy in phy-core

In multi-phy PHY providers, each PHY should be modeled as sub-node of PHY provider. So it makes sense for the controller node to have the phandle for the sub-node instead of the PHY-provider node in the 'phy' property.

This patch series added support so that the controller node can have the phandle to the sub-node. So if the phy specifier does not have any other fields other than the phandle (and the PHY driver uses the default xlate), phy_get will return the correct PHY.
However if the phy_sepcifier has other fields and the PHY driver provides its own xlate, the PHY driver can use the *phy->dev.of_node*. (note that now phy->dev.of_node will have the node pointer of the sub-node).

Kishon Vijay Abraham I (2):
phy: core: Fix of_phy_provider_lookup to return PHY provider for sub
node
phy: core: the node pointer of PHY need not be the same as that of
PHY provider

 Documentation/phy.txt               |   10 ++++++----
 drivers/phy/phy-bcm-kona-usb2.c     |    2 +-
 drivers/phy/phy-core.c              |   35 +++++++++++++++++++++++++++--------
 drivers/phy/phy-exynos-dp-video.c   |    2 +-
 drivers/phy/phy-exynos-mipi-video.c |    2 +-
 drivers/phy/phy-exynos5-usbdrd.c    |    3 ++-
 drivers/phy/phy-exynos5250-sata.c   |    2 +-
 drivers/phy/phy-mvebu-sata.c        |    2 +-
 drivers/phy/phy-omap-usb2.c         |    2 +-
 drivers/phy/phy-samsung-usb2.c      |    3 ++-
 drivers/phy/phy-sun4i-usb.c         |    2 +-
 drivers/phy/phy-ti-pipe3.c          |    2 +-
 drivers/phy/phy-twl4030-usb.c       |    2 +-
 drivers/phy/phy-xgene.c             |    2 +-
 include/linux/phy/phy.h             |   15 ++++++++++-----
 15 files changed, 57 insertions(+), 29 deletions(-)
Signature · 1 line
1.7.9.5