Skip to content

Commit

Permalink
media: video: isp: Enable/disable the isp interrupt when turning on/o…
Browse files Browse the repository at this point in the history
…ff clocks

Without this patch an irq can occur while the clocks are off, in that
case the interrupt handler tries to access resources that aren't being
clocked.

Change-Id: I08f6ffc1e1a4fa0f96d7031800c1feb421be5b4a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
  • Loading branch information
Rebecca Schultz Zavin committed Apr 26, 2010
1 parent dd89c57 commit 59e8d63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/isp/isp.c
Expand Up @@ -2516,6 +2516,7 @@ int isp_get(void)
isp_restore_ctx();
else
has_context = 1;
enable_irq(omap3isp->irq);
}
isp_obj.ref_count++;
mutex_unlock(&(isp_obj.isp_mutex));
Expand Down Expand Up @@ -2543,6 +2544,7 @@ int isp_put(void)
mutex_lock(&(isp_obj.isp_mutex));
if (isp_obj.ref_count) {
if (--isp_obj.ref_count == 0) {
disable_irq_nosync(omap3isp->irq);
isp_save_ctx();
isp_release_resources();
isp_obj.module.isp_pipeline = 0;
Expand Down

0 comments on commit 59e8d63

Please sign in to comment.