Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Baolin Wang
On 8 August 2015 at 01:53, Greg KH wrote: > On Fri, Aug 07, 2015 at 05:22:47PM +0800, Baolin Wang wrote: >> On 7 August 2015 at 17:07, Peter Chen wrote: >> > >> >> >> /** >> >> >> * struct usb_udc - describes one usb device controller @@ -127,12 >> >> >> +128,45 @@ void usb_gadget_giveback_req

Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Greg KH
On Fri, Aug 07, 2015 at 05:22:47PM +0800, Baolin Wang wrote: > On 7 August 2015 at 17:07, Peter Chen wrote: > > > >> >> /** > >> >> * struct usb_udc - describes one usb device controller @@ -127,12 > >> >> +128,45 @@ void usb_gadget_giveback_request(struct usb_ep *ep, } > >> >> EXPORT_SYMBOL_G

Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 17:07, Peter Chen wrote: > >> >> /** >> >> * struct usb_udc - describes one usb device controller @@ -127,12 >> >> +128,45 @@ void usb_gadget_giveback_request(struct usb_ep *ep, } >> >> EXPORT_SYMBOL_GPL(usb_gadget_giveback_request); >> >> >> >> +int usb_gadget_register_not

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

2015-08-07 Thread Peter Chen
> >> /** > >> * struct usb_udc - describes one usb device controller @@ -127,12 > >> +128,45 @@ void usb_gadget_giveback_request(struct usb_ep *ep, } > >> EXPORT_SYMBOL_GPL(usb_gadget_giveback_request); > >> > >> +int usb_gadget_register_notify(struct usb_gadget *gadget, > >> +

Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-07 Thread Baolin Wang
On 7 August 2015 at 13:45, Peter Chen wrote: > On Thu, Aug 06, 2015 at 03:03:49PM +0800, Baolin Wang wrote: >> The usb charger framework is based on usb gadget, and each usb gadget >> can be one usb charger to set the current limitation. >> >> This patch adds a notifier mechanism for usb charger t

Re: [PATCH 2/2] gadget: Support for the usb charger framework

2015-08-06 Thread Peter Chen
On Thu, Aug 06, 2015 at 03:03:49PM +0800, Baolin Wang wrote: > The usb charger framework is based on usb gadget, and each usb gadget > can be one usb charger to set the current limitation. > > This patch adds a notifier mechanism for usb charger to report to usb > charger when the usb gadget state

[PATCH 2/2] gadget: Support for the usb charger framework

2015-08-06 Thread Baolin Wang
The usb charger framework is based on usb gadget, and each usb gadget can be one usb charger to set the current limitation. This patch adds a notifier mechanism for usb charger to report to usb charger when the usb gadget state is changed. Also we introduce a callback 'get_charger_type' which wil