summaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2009-11-03 13:43:16 (GMT)
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-02-27 17:31:12 (GMT)
commitd876c11a0fd40993136f5cc1e81371ccc6c21a63 (patch)
treed2f09796146f4d8a61499759191e4cb832b1984c /arch/m68k
parenteeb9c182a6ad8bc130377adb0a4cd7b95dd15f49 (diff)
downloadlinux-fsl-qoriq-d876c11a0fd40993136f5cc1e81371ccc6c21a63.tar.xz
fbdev: mac_var_to_mode() fix
The valkyriefb driver assumes that this logic holds: mac_vmode_to_var(X, cmode, &var); mac_var_to_vmode(&var, &vmode, &cmode); assert(vmode == X); But it doesn't hold because mac_var_to_vmode() can return a mode with a slower pixel clock, even when a match is available. So we end up with this failure: using video mode 11 and color mode 0. valkyriefb: vmode 12 not valid. valkyriefb: can't set default video mode valkyriefb: vmode 12 not valid. Rather than have mac_var_to_mode() return the first reasonable mode it finds, have it return the mode that is closest to the requested one (or the mode with the closest longer pixel clock period if there is no exact match). Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions