From: Mark Brown <broonie@kernel.org>
To: Baolin Wang <baolin.wang@linaro.org>
Cc: NeilBrown <neilb@suse.com>, Felipe Balbi <balbi@kernel.org>,
Greg KH <gregkh@linuxfoundation.org>,
Sebastian Reichel <sre@kernel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
David Woodhouse <dwmw2@infradead.org>,
robh@kernel.org, Jun Li <jun.li@nxp.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Ruslan Bilovol <ruslan.bilovol@gmail.com>,
Peter Chen <peter.chen@freescale.com>,
Alan Stern <stern@rowland.harvard.edu>,
grygorii.strashko@ti.com,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Lee Jones <lee.jones@linaro.org>,
John Stultz <john.stultz@linaro.org>,
Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
patches@opensource.wolfsonmicro.com,
Linux PM list <linux-pm@vger.kernel.org>,
USB <linux-usb@vger.kernel.org>,
device-mainlining@lists.linuxfoundation.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation
Date: Fri, 28 Oct 2016 18:03:02 +0100 [thread overview]
Message-ID: <20161028170302.au73yu2fplfig36a@sirena.org.uk> (raw)
In-Reply-To: <CAMz4kuJPenbqf935EGW67UeqOiP48_Ti1Jf5YfJ_K=DEcrz++Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]
On Fri, Oct 28, 2016 at 08:51:41PM +0800, Baolin Wang wrote:
> On 28 October 2016 at 06:00, NeilBrown <neilb@suse.com> wrote:
> > 1/ I think we agreed that it doesn't make sense for there to be
> > two chargers registered in a system.
> Yes, until now...
> > However usb_charger_register() still allows that, and assigns
> > and arbitrary name to each based on discovery order.
> > This *cannot* make sense.
> Fine, I can change that to allow only one charger to register.
Yeah, it's a reasonable change. I'm not sure the prior discussion was
100% conclusive on the issue (I remember there being some debate about
leaving things there to avoid any need for future refactoring to touch
the interface).
> > 2/ Why do you have usb_charger_set_current()??
> > No code ever calls it.
> > This updates the min and max current which are defined in a
> > standard. It never makes sense to change the min and max
> > for a particular cable type.
> Mark, do we have some scenarios which want to change the current
> limitation? If not, okay, I agree with you to remove this function.
I'm not aware of any, we can always add it back if the need arises.
> > Related: I don't like charger_type_show(). I don't think
> > the usb-charger should export that information to user-space because
> > extcon already does that, and duplication is confusing and pointless.
> I think we should combine all charger related information into one
> place for user. Moreover if we don't get charger type from extcon, we
> should also need one place to export the charger type.
I had also thought there was some software negotation as well as the
physical charger in cases where the device is plugged into an active
host? I could be wrong.
> > 5/ There is no convincing example usage of this framework.
> > wm8931x_power.c just scratches the surface.
> > If it is so good, it should be easy to convert a lot of other
> > drivers over to it. If you did that it would be much easier
> > to see how it works and what the strengths/weaknesses were.
> Jun have send out one patchset[1] based on my patchset, and he tested
> mypatchset. Thanks for your comments.
> [1]http://www.spinics.net/lists/linux-usb/msg139809.html
I think it's a good idea to pick up Jun's patches into your patch set,
that way Jun doesn't need to rebase and it might help with review of
your patches too.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2016-10-28 17:04 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 2:37 Baolin Wang
2016-10-19 2:37 ` [PATCH v18 1/4] usb: gadget: Introduce the usb charger framework Baolin Wang
2016-10-19 2:37 ` [PATCH v18 2/4] usb: gadget: Support for " Baolin Wang
2016-10-19 2:37 ` [PATCH v18 3/4] usb: gadget: Integrate with the usb gadget supporting for usb charger Baolin Wang
2016-10-19 2:37 ` [PATCH v18 4/4] power: wm831x_power: Support USB charger current limit management Baolin Wang
2016-10-27 7:33 ` [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation Baolin Wang
2016-10-27 22:00 ` NeilBrown
2016-10-28 12:51 ` Baolin Wang
2016-10-28 17:03 ` Mark Brown [this message]
2016-10-31 11:25 ` Baolin Wang
2016-10-31 0:00 ` NeilBrown
2016-11-01 12:54 ` Baolin Wang
2016-11-03 1:25 ` NeilBrown
2016-11-07 8:14 ` Baolin Wang
2016-11-07 20:36 ` NeilBrown
2016-11-10 9:42 ` Baolin Wang
2016-11-14 4:21 ` NeilBrown
2016-11-14 12:04 ` Mark Brown
2016-11-14 21:35 ` NeilBrown
2016-11-15 5:03 ` Peter Chen
2016-11-16 16:16 ` Mark Brown
2016-11-17 6:46 ` NeilBrown
2016-11-21 17:17 ` Mark Brown
2016-11-21 22:40 ` NeilBrown
2016-11-25 13:00 ` Mark Brown
2016-11-26 0:44 ` NeilBrown
2016-11-28 7:15 ` Baolin Wang
2016-11-14 12:36 ` Baolin Wang
2016-11-08 8:41 ` Peter Chen
2016-11-08 20:38 ` NeilBrown
2016-11-09 1:33 ` Peter Chen
2016-12-20 7:05 ` Baolin Wang
2016-12-20 22:07 ` NeilBrown
2016-12-21 2:54 ` Baolin Wang
2016-12-21 3:48 ` NeilBrown
2016-12-21 9:07 ` Baolin Wang
2016-12-21 23:47 ` NeilBrown
2016-12-22 7:06 ` Baolin Wang
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=20161028170302.au73yu2fplfig36a@sirena.org.uk \
--to=broonie@kernel.org \
--cc=balbi@kernel.org \
--cc=baolin.wang@linaro.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=dbaryshkov@gmail.com \
--cc=device-mainlining@lists.linuxfoundation.org \
--cc=dwmw2@infradead.org \
--cc=gregkh@linuxfoundation.org \
--cc=grygorii.strashko@ti.com \
--cc=john.stultz@linaro.org \
--cc=jun.li@nxp.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=neilb@suse.com \
--cc=patches@opensource.wolfsonmicro.com \
--cc=peter.chen@freescale.com \
--cc=robh@kernel.org \
--cc=ruslan.bilovol@gmail.com \
--cc=sre@kernel.org \
--cc=stern@rowland.harvard.edu \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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
all inboxes | Powered by JetHome®