Hi Felipe, On 13 June 2016 at 23:13, Jun Li <jun...@nxp.com> wrote: > Hi > >> -----Original Message----- >> From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- >> ow...@vger.kernel.org] On Behalf Of Baolin Wang >> Sent: Monday, June 13, 2016 4:47 PM >> To: ba...@kernel.org; gre...@linuxfoundation.org; s...@kernel.org; >> dbarysh...@gmail.com; dw...@infradead.org >> Cc: r...@kernel.org; m.szyprow...@samsung.com; ruslan.bilo...@gmail.com; >> peter.c...@freescale.com; st...@rowland.harvard.edu; r.bald...@samsung.com; >> yoshihiro.shimoda...@renesas.com; lee.jo...@linaro.org; broo...@kernel.org; >> ckee...@opensource.wolfsonmicro.com; patc...@opensource.wolfsonmicro.com; >> baolin.w...@linaro.org; linux...@vger.kernel.org; linux- >> u...@vger.kernel.org; device-mainlin...@lists.linuxfoundation.org; linux- >> ker...@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.w...@linaro.org> > > Reviewed-by: Li Jun <jun...@nxp.com> > Tested-by: Li Jun <jun...@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 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html