]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
drivers: platform: tegra: camera: shutdown event
authorCharlie Huang <chahuang@nvidia.com>
Fri, 16 May 2014 23:05:04 +0000 (16:05 -0700)
committerMandar Padmawar <mpadmawar@nvidia.com>
Fri, 30 May 2014 10:31:37 +0000 (03:31 -0700)
commit0075c8317bfc9cb998f110e619680aa4e0638221
treec4c223dcd0d63c2b2c57e5723962fbbeaed9f5b9
parent48981a07c22a9bd96030bf83de6f61fbf64dc13a
drivers: platform: tegra: camera: shutdown event

implement shutdown/suspend/resume functions to avoid i2c failures.
add atomic cam_ref to prevent the conflict scenario of system
shutdown but the user space still atempt to access the driver.

bug 1503230

Change-Id: I3fe58b49c1391dcc312f096c307a0849b829689a
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/411093
(cherry picked from commit c4a86a3b83dd0e71026b68e410b45897e7e284fc)
Reviewed-on: http://git-master/r/415578
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
drivers/media/platform/tegra/camera.c