Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-28 Thread Chunfeng Yun
On Mon, 2020-07-27 at 17:02 +0200, Paul Cercueil wrote: > > Le lun. 27 juil. 2020 à 13:42, Chunfeng Yun > a écrit : > > On Sun, 2020-07-26 at 12:27 +0200, Paul Cercueil wrote: > >> > >> Le dim. 26 juil. 2020 à 13:14, Andy Shevchenko > >> a écrit : > >> > On Mon, Jun 22, 2020 at 1:51 AM

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-27 Thread Paul Cercueil
Le lun. 27 juil. 2020 à 13:42, Chunfeng Yun a écrit : On Sun, 2020-07-26 at 12:27 +0200, Paul Cercueil wrote: Le dim. 26 juil. 2020 à 13:14, Andy Shevchenko a écrit : > On Mon, Jun 22, 2020 at 1:51 AM Paul Cercueil > wrote: >> >> Register a power supply charger, if the Kconfig

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-26 Thread Chunfeng Yun
On Sun, 2020-07-26 at 12:27 +0200, Paul Cercueil wrote: > > Le dim. 26 juil. 2020 à 13:14, Andy Shevchenko > a écrit : > > On Mon, Jun 22, 2020 at 1:51 AM Paul Cercueil > > wrote: > >> > >> Register a power supply charger, if the Kconfig option > >> USB_CONN_GPIO_CHARGER is set, whose

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-26 Thread Paul Cercueil
Le dim. 26 juil. 2020 à 13:14, Andy Shevchenko a écrit : On Mon, Jun 22, 2020 at 1:51 AM Paul Cercueil wrote: Register a power supply charger, if the Kconfig option USB_CONN_GPIO_CHARGER is set, whose online state depends on whether the USB role is set to device or not. This is

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-26 Thread Andy Shevchenko
On Mon, Jun 22, 2020 at 1:51 AM Paul Cercueil wrote: > > Register a power supply charger, if the Kconfig option > USB_CONN_GPIO_CHARGER is set, whose online state depends on whether > the USB role is set to device or not. > > This is useful when the USB role is the only way to know if the device

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-26 Thread Paul Cercueil
Le dim. 26 juil. 2020 à 10:39, Greg Kroah-Hartman a écrit : On Sat, Jul 25, 2020 at 07:51:14PM +0200, Paul Cercueil wrote: Hi Greg, Le mar. 21 juil. 2020 à 13:41, Greg Kroah-Hartman a écrit : > On Mon, Jun 22, 2020 at 12:48:07AM +0200, Paul Cercueil wrote: > > Register a power

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-26 Thread Greg Kroah-Hartman
On Sat, Jul 25, 2020 at 07:51:14PM +0200, Paul Cercueil wrote: > Hi Greg, > > Le mar. 21 juil. 2020 à 13:41, Greg Kroah-Hartman > a écrit : > > On Mon, Jun 22, 2020 at 12:48:07AM +0200, Paul Cercueil wrote: > > > Register a power supply charger, if the Kconfig option > > >

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-25 Thread Paul Cercueil
Hi Greg, Le mar. 21 juil. 2020 à 13:41, Greg Kroah-Hartman a écrit : On Mon, Jun 22, 2020 at 12:48:07AM +0200, Paul Cercueil wrote: Register a power supply charger, if the Kconfig option USB_CONN_GPIO_CHARGER is set, whose online state depends on whether the USB role is set to device or

Re: [RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-07-21 Thread Greg Kroah-Hartman
On Mon, Jun 22, 2020 at 12:48:07AM +0200, Paul Cercueil wrote: > Register a power supply charger, if the Kconfig option > USB_CONN_GPIO_CHARGER is set, whose online state depends on whether > the USB role is set to device or not. > > This is useful when the USB role is the only way to know if the

[RESEND PATCH] usb: common: usb-conn-gpio: Register optional charger

2020-06-21 Thread Paul Cercueil
Register a power supply charger, if the Kconfig option USB_CONN_GPIO_CHARGER is set, whose online state depends on whether the USB role is set to device or not. This is useful when the USB role is the only way to know if the device is charging from USB. The API is the standard power supply