summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2011-08-24 15:23:56 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-08-25 17:04:51 -0700
commitaeba661ea0f1f30036792d0f57fa474671e5b646 (patch)
treee1052b796f0ecba9c5493776acf1e9c22ddb57e9 /drivers
parent2956e1469550d2d2972810871e05691a6a52a3a4 (diff)
video: tegra: dc: Fix smartdimmer brightness update issue.
When dc is disabled, don't perform smartdimmer brightness update. Accessing dc registers when dc is disabled causes cpu lockup. Bug 866024 Change-Id: Ibe5ef46fe6c3cbc622021c5d6a57c6f4bc11fe78 Reviewed-on: http://git-master/r/49064 Reviewed-by: Jonathan Mayo <jmayo@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Tested-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/dc/dc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 9373acfd32fd..fb3f70a1d7ca 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1827,7 +1827,8 @@ static void tegra_dc_vblank(struct work_struct *work)
tegra_dc_program_bandwidth(dc);
/* Update the SD brightness */
- nvsd_updated = nvsd_update_brightness(dc);
+ if (dc->enabled)
+ nvsd_updated = nvsd_update_brightness(dc);
mutex_unlock(&dc->lock);