linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neil@brown.name>
To: Mark Rutland <mark.rutland@arm.com>,
	Pawel Moll <pawel.moll@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Sebastian Reichel <sre@kernel.org>, Felipe Balbi <balbi@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	Kumar Gala <galak@codeaurora.org>
Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, Pavel Machek <pavel@ucw.cz>,
	linux-pm@vger.kernel.org
Subject: [PATCH 0/2] Allow twl4030_charger to find phy reliably.
Date: Mon, 23 Mar 2015 09:52:48 +1100	[thread overview]
Message-ID: <20150322225053.22311.45510.stgit@notabene.brown> (raw)

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


             reply	other threads:[~2015-03-22 22:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-22 22:52 NeilBrown [this message]
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
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
  -- strict thread matches above, loose matches on Subject: below --
2015-02-24  4:01 [PATCH 0/2] Allow twl4030_charger to find phy reliably NeilBrown
2015-03-02 21:05 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150322225053.22311.45510.stgit@notabene.brown \
    --to=neil@brown.name \
    --cc=balbi@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pavel@ucw.cz \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).