]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
power: extcon:convert extcon lock to spinlock from mutex
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Wed, 11 Jun 2014 05:24:03 +0000 (10:54 +0530)
committerHarshada Kale <hkale@nvidia.com>
Mon, 16 Jun 2014 14:40:24 +0000 (07:40 -0700)
commit67aa0413d9a16530cc2967682f4f12c2ac62104a
tree4a1657606b1a37af51684d6fcba6ca9141e8190a
parent3e6733bb4f62148b38af8ccbe56dc0e62a052138
power: extcon:convert extcon lock to spinlock from mutex

use spinlock instread of mutex to avoid kernel warning "sleeping
function called from invalid context" if CONFIG_DEBUG_ATOMIC_SLEEP
(sleep inside atomic section checking config) enabled and usb cable
plugged/unplugged.

Bug 1522398

Change-Id: I813f959dc5cb3ce666794a8d57152b6f562046a6
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/421988
(cherry picked from commit dbca4e0d9f5cdd7da5270288bf1e8add4e164e6a)
Reviewed-on: http://git-master/r/422555
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/power/power_supply_extcon.c