RE: [RESEND PATCH v11 2/4] gadget: Support for the usb charger framework

From: Jun Li
Date: Mon Jun 13 2016 - 11:15:22 EST


Hi

> -----Original Message-----
> From: linux-usb-owner@xxxxxxxxxxxxxxx [mailto:linux-usb-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Baolin Wang
> Sent: Monday, June 13, 2016 4:47 PM
> To: balbi@xxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx; sre@xxxxxxxxxx;
> dbaryshkov@xxxxxxxxx; dwmw2@xxxxxxxxxxxxx
> Cc: robh@xxxxxxxxxx; m.szyprowski@xxxxxxxxxxx; ruslan.bilovol@xxxxxxxxx;
> peter.chen@xxxxxxxxxxxxx; stern@xxxxxxxxxxxxxxxxxxx; r.baldyga@xxxxxxxxxxx;
> yoshihiro.shimoda.uh@xxxxxxxxxxx; lee.jones@xxxxxxxxxx; broonie@xxxxxxxxxx;
> ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx; patches@xxxxxxxxxxxxxxxxxxxxxxxxxxx;
> baolin.wang@xxxxxxxxxx; linux-pm@xxxxxxxxxxxxxxx; linux-
> usb@xxxxxxxxxxxxxxx; device-mainlining@xxxxxxxxxxxxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: [RESEND PATCH v11 2/4] gadget: Support for the usb charger
> framework
>
> For supporting the usb charger, it adds the usb_charger_init() and
> usb_charger_exit() functions for usb charger initialization and exit.
>
> It will report to the usb charger when the gadget state is changed, then
> the usb charger can do the power things.
>
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxx>

Reviewed-by: Li Jun <jun.li@xxxxxxx>
Tested-by: Li Jun <jun.li@xxxxxxx>

> ---
> drivers/usb/gadget/udc/udc-core.c | 11 +++++++++++
> include/linux/usb/gadget.h | 11 +++++++++++
> 2 files changed, 22 insertions(+)