Skip to content

Commit

Permalink
ARM: pxafb: don't disable controller on cpufreq transition if overlay…
Browse files Browse the repository at this point in the history
… in use

It's not safe to disable controller if overlay(s) is enabled (results in
system hang). So we avoid to disable controller in this case. Userspace
should choose proper governor to avoid freq changing when overlay is in
use, otherwise LCD may blink.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
  • Loading branch information
Vasily Khoruzhick authored and Eric Miao committed Mar 16, 2011
1 parent dcf8eee commit 27be9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,7 +1648,8 @@ pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data)

switch (val) {
case CPUFREQ_PRECHANGE:
set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE);
if (!fbi->overlay[0].usage && !fbi->overlay[1].usage)
set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE);
break;

case CPUFREQ_POSTCHANGE:
Expand Down

0 comments on commit 27be9a9

Please sign in to comment.