devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Allow twl4030_charger to find phy reliably.
@ 2015-03-22 22:52 NeilBrown
  2015-03-22 22:52 ` [PATCH 2/2] twl4030_charger: find associated phy by more reliable means NeilBrown
  2015-03-22 22:52 ` [PATCH 1/2] usb: phy: Add interface to get phy give of device_node NeilBrown
  0 siblings, 2 replies; 5+ messages in thread
From: NeilBrown @ 2015-03-22 22:52 UTC (permalink / raw)
  To: Mark Rutland, Pawel Moll, Ian Campbell, Sebastian Reichel,
	Felipe Balbi, Rob Herring, Kumar Gala
  Cc: devicetree, linux-usb, linux-kernel, Pavel Machek, linux-pm

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.

===

This is a resend with improved documentation.  I'm hoping this can go
in to the next merge window, though should it go through usb/phy or
power???

Thanks,
NeilBrown



---

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


 .../devicetree/bindings/power/twl-charger.txt      |   10 ++
 .../devicetree/bindings/usb/twlxxxx-usb.txt        |    3 +
 drivers/power/twl4030_charger.c                    |   21 ++--
 drivers/usb/phy/phy.c                              |   97 ++++++++++++++------
 include/linux/usb/phy.h                            |    2 
 5 files changed, 94 insertions(+), 39 deletions(-)

--
Signature


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-17  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-22 22:52 [PATCH 0/2] Allow twl4030_charger to find phy reliably NeilBrown
2015-03-22 22:52 ` [PATCH 2/2] twl4030_charger: find associated phy by more reliable means NeilBrown
2015-05-08 16:12   ` Felipe Balbi
     [not found]     ` <20150508161205.GE16571-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-05-17  9:56       ` Sebastian Reichel
2015-03-22 22:52 ` [PATCH 1/2] usb: phy: Add interface to get phy give of device_node NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).