Skip to content

video: mxsfb: fix broken videomode selection

Lothar Waßmann linux-arm-kernel linux-fbdev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2video: mxsfb: convert pr_debug()/dev_dbg() to pr_err()/dev_err() for error messagesdrivers/video/mxsfb.c+3 -30 replies
2/2video: mxsfb: fix broken videomode selectiondrivers/video/mxsfb.c+50 -700 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] video: mxsfb: fix broken videomode selection

The first patch in this set converts some messages that are printed in case of errors to be error messages rather than debug messages.

The second patch fixes a bug in the video selection code that incorrectly OR's together the 'pixelclk-active' and 'de-active' flags from all possible video modes specified in DT into one flag.

The current code does not allow selecting one specific mode from a list of video modes, but always uses the last one of the video modes listed in the DT.

Since all current dts files only have one entry in their 'display-timings' node, this bug was not apparent and the fix does not change the driver's behaviour for the current users.

 b/drivers/video/mxsfb.c |    6 +--
 drivers/video/mxsfb.c   |  120 +++++++++++++++++++++++++++++-----------------------------------------
 2 files changed, 53 insertions(+), 73 deletions(-)