usb: gadget: tegra: remove spin_unlock/lock pair
authorRohith Seelaboyina <rseelaboyina@nvidia.com>
Wed, 20 Nov 2013 05:36:52 +0000 (10:36 +0530)
committerHarry Hong <hhong@nvidia.com>
Tue, 14 Jan 2014 00:46:24 +0000 (16:46 -0800)
commit95e95492aed2a09456a379b826ee064cada67fdd
tree6a0c75f301ba1e5e828fd2538ffa283d5456ca4d
parent05536b463ba44cbe75a9002d34162d49b0009cf0
usb: gadget: tegra: remove spin_unlock/lock pair

Remove the extra spin unlock/lock pain while building
dtd, as data corruption seems to happen by swapping
of dtd when multiple gadget functions are loaded.
This changes will make build dtd as part of Critical
section, there by swapping of dtd's doesnt occur.

Bug 1380570

Change-Id: I69ffc92a294cba13e79e2a02382b0c8f6b8cb28d
Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com>
Reviewed-on: http://git-master/r/334929
(cherry picked from commit 1716e1b6e87ce0765eaab4c0fb62007735b33ee8)
Reviewed-on: http://git-master/r/354900
Reviewed-by: Harry Hong <hhong@nvidia.com>
Tested-by: Harry Hong <hhong@nvidia.com>
drivers/usb/gadget/tegra_udc.c