Skip to content

fbdev: Internalize fbcon

Thomas Zimmermann dri-devel linux-fbdev linuxppc-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- resolve vga-switcheroo dependencies wrt fbcon (Geert) v2:
- use '#if defined' (Helge)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fbdev: Wrap user-invoked calls to fb_set_var() in helperdrivers/video/fbdev/core/fb_chrdev.c drivers/video/fbdev/core/fbcon.c drivers/video/fbdev/core/fbmem.c +4 more+19 -180 replies
2/4fbdev: Wrap user-invoked calls to fb_blank() in helperdrivers/video/fbdev/core/fb_chrdev.c drivers/video/fbdev/core/fb_internal.h drivers/video/fbdev/core/fbmem.c +1 more+13 -70 replies
3/4fbdev: Wrap fbcon updates from vga-switcheroo in helperdrivers/gpu/vga/Kconfig drivers/gpu/vga/vga_switcheroo.c drivers/video/fbdev/core/fbmem.c +1 more+15 -40 replies
4/4fbdev: Do not export fbcon from fbdevMAINTAINERS drivers/video/fbdev/core/fb_chrdev.c drivers/video/fbdev/core/fbcon.c +3 more+52 -590 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/4] fbdev: Internalize fbcon

Turn fbcon into an internal client of fbdev. Manage all interactions with graphics drivers within fbdev. Add helpers for these tasks and convert drivers.

Fbdev's PS3 and SH-Mobile drivers update fbcon as part of user-invoked mode changes. Call the new helpers, which also fix inconsistencies among the various code paths.

Vga-switcheroo remaps the fbcon terminals when switching physical outputs. For now, hide this in another helper. The call will later move into DRM's fbdev emulation.

With all refactoring in place, fbdev manages fbcon interactions by itself. Remove the public interfaces.

v3:
- resolve vga-switcheroo dependencies wrt fbcon (Geert) v2:
- use '#if defined' (Helge)

Thomas Zimmermann (4):
fbdev: Wrap user-invoked calls to fb_set_var() in helper
fbdev: Wrap user-invoked calls to fb_blank() in helper
fbdev: Wrap fbcon updates from vga-switcheroo in helper
fbdev: Do not export fbcon from fbdev

 MAINTAINERS                            |  1 -
 drivers/gpu/vga/Kconfig                |  2 +-
 drivers/gpu/vga/vga_switcheroo.c       |  6 +--
 drivers/video/fbdev/core/fb_chrdev.c   | 12 ++----
 drivers/video/fbdev/core/fb_internal.h |  1 +
 drivers/video/fbdev/core/fbcon.c       |  3 --
 drivers/video/fbdev/core/fbcon.h       | 50 +++++++++++++++++++++++
 drivers/video/fbdev/core/fbmem.c       | 35 +++++++++++++++-
 drivers/video/fbdev/core/fbsysfs.c     |  9 +----
 drivers/video/fbdev/ps3fb.c            |  5 +--
 drivers/video/fbdev/sh_mobile_lcdcfb.c |  5 +--
 include/linux/fb.h                     |  3 ++
 include/linux/fbcon.h                  | 55 --------------------------
 13 files changed, 99 insertions(+), 88 deletions(-)
 delete mode 100644 include/linux/fbcon.h

base-commit: 5fb5a9a63cf5ece68e0eeb6fa397da27712bccf0

Signature · 1 line
2.54.0