Skip to content

fbdev: Remove use of VESA constants

Thomas Zimmermann linux-arm-kernel linux-fbdev lkml sashiko-reviews 1 version Applied

Status from this message: I've applied this series now to fbdev git tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5fbdev/au1100fb: Use FB blanking constantsdrivers/video/fbdev/au1100fb.c+9 -93 replies
2/5fbdev/i810fb: Use FB blanking constantsdrivers/video/fbdev/i810/i810_main.c+1 -10 replies
3/5fbdev/sa1100fb: Remove comment on VESA DPMS modesdrivers/video/fbdev/sa1100fb.c+0 -290 replies
4/5fbdev/platinumfb: Use FB blanking constantsdrivers/video/fbdev/platinumfb.c+5 -30 replies
5/5fbdev/xilinxfb: Use FB blanking constantsdrivers/video/fbdev/xilinxfb.c+1 -10 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/5] fbdev: Remove use of VESA constants

Fbdev and its drivers use FB_BLANK constants for controlling the display blanking state in the fb_blank callback. Several drivers implement the callback with VESA constants; thus mixing up semantics.

Update the drivers to use VESA constants instead.

Some background: the VESA constants describe DPMS levels for monitor singal generation. VESA_NO_BLANKING means that the sync signals are on, although the display adapter might not transfer meaningful pixel data. The constants FB_BLANK_NORMAL represents this case in fbdev, while FB_BLANK_UNBLANK represents enabled sync signal generation plus pixel data. Fbdev drivers using VESA constants therefore often contain off-by-one errors.

Thomas Zimmermann (5):
fbdev/au1100fb: Use FB blanking constants fbdev/i810fb: Use FB blanking constants fbdev/sa1100fb: Remove comment on VESA DPMS modes fbdev/platinumfb: Use FB blanking constants fbdev/xilinxfb: Use FB blanking constants

 drivers/video/fbdev/au1100fb.c       | 18 ++++++++---------
 drivers/video/fbdev/i810/i810_main.c |  2 +-
 drivers/video/fbdev/platinumfb.c     |  8 +++++---
 drivers/video/fbdev/sa1100fb.c       | 29 ----------------------------
 drivers/video/fbdev/xilinxfb.c       |  2 +-
 5 files changed, 16 insertions(+), 43 deletions(-)
Signature · 1 line
2.55.0