[Gta04-owner] [PATCH 0/2] Allow twl4030_charger to find phy reliably.

NeilBrown neilb at suse.de
Tue Feb 24 05:01:29 CET 2015

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

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.



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(-)


More information about the Gta04-owner mailing list