Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1424692
| From | Baolin Wang <baolin.wang@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework |
| Date | 2016-06-17 08:20 +0200 |
| Message-ID | <rKVih-2Tr-5@gated-at.bofh.it> (permalink) |
| References | <rJvJf-3OU-19@gated-at.bofh.it> <rJvJg-3OU-35@gated-at.bofh.it> <rJBYm-86X-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Felipe, On 13 June 2016 at 23:13, Jun Li <jun.li@nxp.com> wrote: > Hi > >> -----Original Message----- >> From: linux-usb-owner@vger.kernel.org [mailto:linux-usb- >> owner@vger.kernel.org] On Behalf Of Baolin Wang >> Sent: Monday, June 13, 2016 4:47 PM >> To: balbi@kernel.org; gregkh@linuxfoundation.org; sre@kernel.org; >> dbaryshkov@gmail.com; dwmw2@infradead.org >> Cc: robh@kernel.org; m.szyprowski@samsung.com; ruslan.bilovol@gmail.com; >> peter.chen@freescale.com; stern@rowland.harvard.edu; r.baldyga@samsung.com; >> yoshihiro.shimoda.uh@renesas.com; lee.jones@linaro.org; broonie@kernel.org; >> ckeepax@opensource.wolfsonmicro.com; patches@opensource.wolfsonmicro.com; >> baolin.wang@linaro.org; linux-pm@vger.kernel.org; linux- >> usb@vger.kernel.org; device-mainlining@lists.linuxfoundation.org; linux- >> kernel@vger.kernel.org >> Subject: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger >> framework >> >> This patch introduces the usb charger driver based on usb gadget that >> makes an enhancement to a power driver. It works well in practice but that >> requires a system with suitable hardware. >> >> The basic conception of the usb charger is that, when one usb charger is >> added or removed by reporting from the usb gadget state change or the >> extcon device state change, the usb charger will report to power user to >> set the current limitation. >> >> The usb charger will register notifiees on the usb gadget or the extcon >> device to get notified the usb charger state. It also supplies the >> notification mechanism to userspace When the usb charger state is changed. >> >> Power user will register a notifiee on the usb charger to get notified by >> status changes from the usb charger. It will report to power user to set >> the current limitation when detecting the usb charger is added or removed >> from extcon device state or usb gadget state. >> >> This patch doesn't yet integrate with the gadget code, so some functions >> which rely on the 'gadget' are not completed, that will be implemented in >> the following patches. >> >> Signed-off-by: Baolin Wang <baolin.wang@linaro.org> > > Reviewed-by: Li Jun <jun.li@nxp.com> > Tested-by: Li Jun <jun.li@nxp.com> Do you have any comments about this patchset, if not I will resend it with testing by Li Jun (thanks for Jun reviewing and testing). Thanks. > >> --- >> drivers/usb/gadget/Kconfig | 7 + >> drivers/usb/gadget/udc/Makefile | 1 + >> drivers/usb/gadget/udc/charger.c | 770 >> ++++++++++++++++++++++++++++++++++++++ >> include/linux/usb/charger.h | 191 ++++++++++ >> include/uapi/linux/usb/charger.h | 31 ++ >> 5 files changed, 1000 insertions(+) >> create mode 100644 drivers/usb/gadget/udc/charger.c create mode 100644 >> include/linux/usb/charger.h create mode 100644 >> include/uapi/linux/usb/charger.h -- Baolin.wang Best Regards
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework Baolin Wang <baolin.wang@linaro.org> - 2016-06-13 10:50 +0200
Re: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework Baolin Wang <baolin.wang@linaro.org> - 2016-06-17 08:20 +0200
Re: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework Felipe Balbi <balbi@kernel.org> - 2016-06-21 09:50 +0200
Re: [RESEND PATCH v11 1/4] gadget: Introduce the usb charger framework Baolin Wang <baolin.wang@linaro.org> - 2016-06-21 10:10 +0200
csiph-web