From aeba661ea0f1f30036792d0f57fa474671e5b646 Mon Sep 17 00:00:00 2001 From: Krishna Reddy Date: Wed, 24 Aug 2011 15:23:56 -0700 Subject: 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 Reviewed-by: Krishna Reddy Tested-by: Krishna Reddy --- drivers/video/tegra/dc/dc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') 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); -- cgit v1.2.3