]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/usb/dwc2/gadget.c
usb: dwc2: gadget: add vbus_draw support
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:39:08 +0000 (13:39 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:34:49 +0000 (15:34 -0600)
commit596d696a5d0e066f2ed4bd6b0e40dedd52513c7c
tree2ec5648d815ddef3e88833b523b42ec707e00750
parent6d13673e6bc5b666913e92ca59518a449da3b4a9
usb: dwc2: gadget: add vbus_draw support

This callback informs the driver about the total amount of current it
is allowed to draw. Share this information with the phy so that
current limits can be set for charging for example.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c