]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
input: misc: inv: prevent IRQ revival
authorSang-Hun Lee <sanlee@nvidia.com>
Wed, 9 Oct 2013 21:14:24 +0000 (14:14 -0700)
committerMitch Luban <mluban@nvidia.com>
Wed, 18 Dec 2013 05:58:47 +0000 (21:58 -0800)
commit2ba46ad0aa7c2d6ea5f36001695381d36d98333a
treeffa0bee8c4f3d1f296d9891d6bd8ccb5a0557faa
parent5d381a4a377dbbd57917b877d7ac1730a23fd7f6
input: misc: inv: prevent IRQ revival

Problem description:
 - nvi_work_function may revive IRQ which was disabled
   during suspend and shutdown

Fix description:
 - Add a flag stop_workqueue which is set during suspend
   and shutdown
 - If the flag is set, make workqueue not revive the IRQ

Bug 1361923

Change-Id: I498091602ef9c43b75c0a17d7fe0837624271959
Signed-off-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-on: http://git-master/r/284347
Reviewed-on: http://git-master/r/330860
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/input/misc/mpu/inv_gyro.c
drivers/input/misc/mpu/inv_gyro.h