Skip to content

Allow twl4030_charger to find phy reliably.

NeilBrown linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: phy: Add interface to get phy give of device_node.drivers/usb/phy/phy.c include/linux/usb/phy.h+72 -270 replies
2/2twl4030_charger: find associated phy by more reliable means.drivers/power/twl4030_charger.c+9 -122 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPavel Machek
SeriesA-b
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] Allow twl4030_charger to find phy reliably.

The twl4030_charger is physically paired with the twl4030 USB phy, so the drivers need to be able to reliably find each other.

twl4030_charger currently uses usb_get_phy(), which works if there is only one phy to choose from, but is not reliable in more complex configurations.

These patches add a new interface to allow a phy to be found given a device node, and then use that interface in twl4030_charger so that it finds its sibling in the devicetree, and gets the phy associated with that.

Thanks,
NeilBrown

---

NeilBrown (2):
usb: phy: Add interface to get phy give of device_node.
twl4030_charger: find associated phy by more reliable means.

 drivers/power/twl4030_charger.c |   21 ++++----
 drivers/usb/phy/phy.c           |   97 ++++++++++++++++++++++++++++-----------
 include/linux/usb/phy.h         |    2 +
 3 files changed, 81 insertions(+), 39 deletions(-)

--
Signature