[RESEND PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-05-02 Thread Baolin Wang
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

[RESEND PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-05-02 Thread Baolin Wang
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

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Baolin Wang
Hi Jun, On 18 April 2016 at 16:27, Jun Li wrote: >> >> >> >> But another issue is some users may need to get the charger type from >> >> power supply by "power_supply_get_property()" function, we need to >> >> integrate with the power supply things in the usb charger framework,

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Baolin Wang
Hi Jun, On 18 April 2016 at 16:27, Jun Li wrote: >> >> >> >> But another issue is some users may need to get the charger type from >> >> power supply by "power_supply_get_property()" function, we need to >> >> integrate with the power supply things in the usb charger framework, >> >> not user to

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Jun Li
.@vger.kernel.org; device- > mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > Sorry for late reply. > > >> >> >> >> +/* > >> >> >> >> + *

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-18 Thread Jun Li
@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > Sorry for late reply. > > >> >> >> >> +/* > >> >> >> >> + * usb_c

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-11 Thread Baolin Wang
Hi Jun, Sorry for late reply. >> >> >> >> +/* >> >> >> >> + * usb_charger_detect_type() - detect the charger type manually. >> >> >> >> + * @uchger - usb charger device >> >> >> >> + * >> >> >> >> + * Note: You should ensure you need to detect the charger type >> >> >> >> +manually on your >> >>

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-11 Thread Baolin Wang
Hi Jun, Sorry for late reply. >> >> >> >> +/* >> >> >> >> + * usb_charger_detect_type() - detect the charger type manually. >> >> >> >> + * @uchger - usb charger device >> >> >> >> + * >> >> >> >> + * Note: You should ensure you need to detect the charger type >> >> >> >> +manually on your >> >>

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-10 Thread Jun Li
.@vger.kernel.org; device- > mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > On 8 April 2016 at 19:27, Jun Li <jun...@nxp.com> wrote: > > > > > >> -Original Message- > >>

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-10 Thread Jun Li
@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > On 8 April 2016 at 19:27, Jun Li wrote: > > > > > >> -Original Message- > >> From: Baolin Wang [mailto:baolin.w...@linaro

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
.@vger.kernel.org; device- > mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > On 8 April 2016 at 16:04, Jun Li <jun...@nxp.com> wrote: > > Hi, Baolin > > > >> +/* > &

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > On 8 April 2016 at 16:04, Jun Li wrote: > > Hi, Baolin > > > >> +/* > >> + * usb_charger_detect_ty

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
ro.com; patc...@opensource.wolfsonmicro.com; >> linux...@vger.kernel.org; linux-...@vger.kernel.org; device- >> mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework >> >

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
t;> linux...@vger.kernel.org; linux-...@vger.kernel.org; device- >> mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework >> >> Hi Jun, >> >> >> >> +/* &g

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
.@vger.kernel.org; device- > mainlin...@lists.linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > >> >> +/* > >> >> + * usb_charger_detect_type() - detect the charger type manually. > &g

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
linuxfoundation.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > Hi Jun, > > >> >> +/* > >> >> + * usb_charger_detect_type() - detect the charger type manually. > >> >> + * @uchg

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
Hi Jun, >> >> +/* >> >> + * usb_charger_detect_type() - detect the charger type manually. >> >> + * @uchger - usb charger device >> >> + * >> >> + * Note: You should ensure you need to detect the charger type >> >> +manually on your >> >> + * platform. >> >> + * You should call it at the right

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
Hi Jun, >> >> +/* >> >> + * usb_charger_detect_type() - detect the charger type manually. >> >> + * @uchger - usb charger device >> >> + * >> >> + * Note: You should ensure you need to detect the charger type >> >> +manually on your >> >> + * platform. >> >> + * You should call it at the right

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
Hi Jun, On 8 April 2016 at 16:04, Jun Li wrote: > Hi, Baolin > >> +/* >> + * usb_charger_detect_type() - detect the charger type manually. >> + * @uchger - usb charger device >> + * >> + * Note: You should ensure you need to detect the charger type manually >> +on your >> + *

Re: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Baolin Wang
Hi Jun, On 8 April 2016 at 16:04, Jun Li wrote: > Hi, Baolin > >> +/* >> + * usb_charger_detect_type() - detect the charger type manually. >> + * @uchger - usb charger device >> + * >> + * Note: You should ensure you need to detect the charger type manually >> +on your >> + * platform. >> + *

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
aro.org; linux...@vger.kernel.org; linux- > u...@vger.kernel.org; device-mainlin...@lists.linuxfoundation.org; linux- > ker...@vger.kernel.org > Subject: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > This patch introduces the usb charger driver based on usb gadget that &g

RE: [PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-08 Thread Jun Li
aro.org; linux...@vger.kernel.org; linux- > u...@vger.kernel.org; device-mainlin...@lists.linuxfoundation.org; linux- > ker...@vger.kernel.org > Subject: [PATCH v10 1/4] gadget: Introduce the usb charger framework > > This patch introduces the usb charger driver based on usb gadget that &g

[PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-07 Thread Baolin Wang
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

[PATCH v10 1/4] gadget: Introduce the usb charger framework

2016-04-07 Thread Baolin Wang
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