]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
usb: gadget: tegra: Allow device to charge in LP0
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Mon, 2 Dec 2013 09:09:56 +0000 (14:39 +0530)
committerRohith Seelaboyina <rseelaboyina@nvidia.com>
Fri, 6 Dec 2013 09:13:12 +0000 (01:13 -0800)
commit9918e9409535f4ca855d456872258a6c34416635
treeae16c602400e07e78f6f8e9e579f0d63393b8e51
parent6dc71cb6cc3d46ef518380f8190bda7faa5fd6ec
usb: gadget: tegra: Allow device to charge in LP0

USB Driver changes state from Peripheral to Suspend
while going to LP0, in that process it sets charging
current limit to '0'. This makes charger to disconnect.
Do not set current limit to '0' while going to suspend
and set current on resume if cable is removed/changed.

Bug 1406615

Change-Id: I49ce9528cba4c22b64d4b68b263affec305aac0c
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/334968
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/gadget/tegra_udc.c
drivers/usb/gadget/tegra_udc.h