video: tegra: host: do not assume 3d channel opened by user space
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Tue, 27 Mar 2012 09:24:47 +0000 (14:24 +0530)
committerRohan Somvanshi <rsomvanshi@nvidia.com>
Fri, 30 Mar 2012 15:08:59 +0000 (08:08 -0700)
commit1a1b1468b9ef4c33c7408b0c67bb9f751d485dec
tree6292140237e963c6f58bf6ac04fabc114fec98cb
parenta55e86c26f4096aa7897455bf9e3146ab52f7036
video: tegra: host: do not assume 3d channel opened by user space

- if user space does not open 3d channel, 3d scaling
algorithm is not initialized. so return safely when
3d scaling is disabled
- also do not call nvhost_module_suspend() explicitly
for host1x client modules. nvhost_channel_suspend()
takes care to suspend the module if ref count = 0
- call nvhost_module_suspend() only for host1x device
as it does not use actual hardware channel

Bug 953451

Change-Id: Iba2b771b71d9b41c8ed978112566181872c56259
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/92506
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Peer Chen <pchen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Emily Jiang <ejiang@nvidia.com>
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/gr3d/scale3d.c