]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: comms: fix crash at dev attr change
authorVinayak Pane <vpane@nvidia.com>
Thu, 5 Jan 2012 23:28:54 +0000 (15:28 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:37:56 +0000 (01:37 -0700)
commit71e3e171c71e3d77c0b0b6e299ea802540a66d1b
tree566dccbcfd1bc7f37033a8b51cc5f18b3eff20fc
parent03dcbd1db6c93b894977f11d0d74edea67635195
arm: tegra: comms: fix crash at dev attr change

Check the state machine before poweron the modem by device
attribute change routine. Maintain the state machine to
avoid crash after writing state change to
 /sys/devices/platform/baseband_xmm_power/xmm_onoff

Also cancel workqueue at module unload to avoid
possible crash.

Bug 898008

Reviewed-on: http://git-master/r/72934

Change-Id: I0d8286774040f155c930ecb0bb69778de6c606ac
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/77744
Reviewed-by: Automatic_Commit_Validation_User
Rebase-Id: Reaea4fbd585c3f1cce910997ea17c7d8bfb544aa
arch/arm/mach-tegra/baseband-xmm-power.c
arch/arm/mach-tegra/baseband-xmm-power2.c