Skip to content

Commit

Permalink
drivers: video: msm: fix hang on disable_irq
Browse files Browse the repository at this point in the history
There's a resource race around disable_irq. Using the nosync
version allows the function to continue and prevents the hang.

Adapted from Arve Hjønnevåg <arve@android.com> changes in the Google tree.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
  • Loading branch information
Daniel Walker committed Oct 12, 2010
1 parent 461cbe7 commit 5ad43ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/msm/mdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int locked_disable_mdp_irq(struct mdp_info *mdp, uint32_t mask)
mdp_irq_mask &= ~(mask);
/* if no one is waiting on the interrupt, disable it */
if (!mdp_irq_mask) {
disable_irq(mdp->irq);
disable_irq_nosync(mdp->irq);
if (clk)
clk_disable(clk);
}
Expand Down

0 comments on commit 5ad43ff

Please sign in to comment.