Skip to content

phy: simplified phy lookup

Heikki Krogerus lkml 4 versions – In review

Get series with b4
b4 am 1416410903-162369-1-git-send-email-heikki.krogerus@linux.intel.com

Versions newest first · linked by author and title

  1. v5 Latest7 patches 6 repliesIn review
  2. v46 patches 16 repliesSuperseded
  3. v36 patches 23 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v26 patches9 repliesSuperseded

Changes in v5 from the cover letter

- Support for static lookups is dropped. The lookups can be now only be created with phy_create_lookup()

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7phy: safer to_phy() macroinclude/linux/phy/phy.h+1 -10 replies
2/7phy: improved lookup methodDocumentation/phy.txt drivers/phy/phy-core.c include/linux/phy/phy.h+115 -450 replies
3/7phy: twl4030: use the new lookup methoddrivers/phy/phy-twl4030-usb.c+6 -30 replies
4/7arm: omap3: twl: remove usb phy init dataarch/arm/mach-omap2/twl-common.c include/linux/i2c/twl.h+1 -133 replies
5/7phy: remove the old lookup methoddrivers/phy/phy-bcm-kona-usb2.c drivers/phy/phy-berlin-sata.c drivers/phy/phy-core.c +22 more+32 -1070 replies
6/7base: platform: name the device already during allocationdrivers/base/platform.c+41 -282 replies
7/7usb: dwc3: host: convey the PHYs to xhcidrivers/usb/dwc3/host.c+16 -60 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchVivek GautamFelipe Balbi
SeriesT-b
1/7T-b A-b
2/7
3/7
4/7
5/7
6/7
7/7T-b A-b

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

Read the v5 thread

Cover letter [PATCHv5 0/7] phy: simplified phy lookup

This set will in practice just separate the creation of a phy and binding of it to the consumer. Mapping phys to consumers can be now done with lookups similarly how clocks can be mapped in clkdev.c.

Vivek needs to handle the phys of dwc3 also in xhci driver on Exynos5420 SoC, so I'm resending these now.

Changes since v4:
- Support for static lookups is dropped. The lookups can be now only be created with phy_create_lookup()

Changes since v3:
- We can't rely on the order in which the phys are registered, so using the name of the parent of the phy instance for matching instead of the phy itself. The parent device is always the actual physical device.
- Using PHY_LOOKUP macro in twl-common.c as suggested by Kishon.

Changes since v2:
- Calling ida_simple_remove in release function as pointed out by Greg

Heikki Krogerus (7):
phy: safer to_phy() macro
phy: improved lookup method
phy: twl4030: use the new lookup method
arm: omap3: twl: remove usb phy init data
phy: remove the old lookup method
base: platform: name the device already during allocation
usb: dwc3: host: convey the PHYs to xhci

 Documentation/phy.txt                |  60 ++++++--------------
 arch/arm/mach-omap2/twl-common.c     |  12 +---
 drivers/base/platform.c              |  69 +++++++++++++----------
 drivers/phy/phy-bcm-kona-usb2.c      |   2 +-
 drivers/phy/phy-berlin-sata.c        |   2 +-
 drivers/phy/phy-core.c               | 105 ++++++++++++++++++++++++-----------
 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-hix5hd2-sata.c       |   2 +-
 drivers/phy/phy-miphy365x.c          |   2 +-
 drivers/phy/phy-mvebu-sata.c         |   2 +-
 drivers/phy/phy-omap-usb2.c          |   2 +-
 drivers/phy/phy-qcom-apq8064-sata.c  |   3 +-
 drivers/phy/phy-qcom-ipq806x-sata.c  |   3 +-
 drivers/phy/phy-rcar-gen2.c          |   2 +-
 drivers/phy/phy-samsung-usb2.c       |   3 +-
 drivers/phy/phy-spear1310-miphy.c    |   2 +-
 drivers/phy/phy-spear1340-miphy.c    |   2 +-
 drivers/phy/phy-stih407-usb.c        |   2 +-
 drivers/phy/phy-stih41x-usb.c        |   2 +-
 drivers/phy/phy-sun4i-usb.c          |   2 +-
 drivers/phy/phy-ti-pipe3.c           |   2 +-
 drivers/phy/phy-twl4030-usb.c        |   9 ++-
 drivers/phy/phy-xgene.c              |   2 +-
 drivers/pinctrl/pinctrl-tegra-xusb.c |   4 +-
 drivers/usb/dwc3/host.c              |  22 ++++++--
 include/linux/i2c/twl.h              |   2 -
 include/linux/phy/phy.h              |  52 +++++++----------
 30 files changed, 195 insertions(+), 186 deletions(-)
Signature · 1 line
2.1.3