Re: [PATCH 2/4] usb: phy: twl4030: allow charger to see usb current draw limits.

2015-03-03 Thread NeilBrown
On Mon, 2 Mar 2015 22:03:55 +0100 Pavel Machek wrote: > On Tue 2015-02-24 14:40:37, NeilBrown wrote: > > The charger needs to know when a USB gadget has been enumerated > > and what the agreed maximum current was so that it can adjust > > charging accordingly. > > > > So define a "set_power()" f

Re: [PATCH 2/4] usb: phy: twl4030: allow charger to see usb current draw limits.

2015-03-02 Thread Pavel Machek
On Tue 2015-02-24 14:40:37, NeilBrown wrote: > The charger needs to know when a USB gadget has been enumerated > and what the agreed maximum current was so that it can adjust > charging accordingly. > > So define a "set_power()" function to record the permitted > draw, and pass a pointer to that w

[PATCH 2/4] usb: phy: twl4030: allow charger to see usb current draw limits.

2015-02-23 Thread NeilBrown
The charger needs to know when a USB gadget has been enumerated and what the agreed maximum current was so that it can adjust charging accordingly. So define a "set_power()" function to record the permitted draw, and pass a pointer to that when sending USB_EVENT_ENUMERATED notification. Signed-of