video: tegra: host: revise channel refcnt API's
authorShridhar Rasal <srasal@nvidia.com>
Sun, 29 Jun 2014 03:47:52 +0000 (08:47 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 17 Oct 2014 17:56:12 +0000 (10:56 -0700)
commit83296fee29da1a2e6973157aa9f9d913071657bc
tree2f8a0bddb311b3f4be131b6e9d4fdd35dad423e5
parent8ea724b67e4366615059a83dfe28d3f49c48d25f
video: tegra: host: revise channel refcnt API's

Use only one API to subtract channel refcnts.
To check unbanalaced channel refcnt add WARN_ON when count
goes below zero.
Print error number when channel unmap fails.

Bug 1526504

Change-Id: If88f028a44c9b796d8eaae4affcd0026758cfbe8
(cherry picked from commit f98ce1fc2066e2309af2ef7a52801abadbd40f00)
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/496479
Reviewed-on: http://git-master/r/538723
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/host1x/host1x_channel.c
drivers/video/tegra/host/nvhost_channel.c
drivers/video/tegra/host/nvhost_channel.h
drivers/video/tegra/host/nvhost_intr.c