All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arch: Remove fbdev dependency from video helpers
@ 2024-03-27 20:41 ` Thomas Zimmermann
  0 siblings, 0 replies; 64+ messages in thread
From: Thomas Zimmermann @ 2024-03-27 20:41 UTC (permalink / raw)
  To: arnd, javierm, deller, sui.jingfeng
  Cc: linux-arch, dri-devel, linux-fbdev, sparclinux, linux-sh,
	linuxppc-dev, linux-parisc, linux-mips, linux-m68k, loongarch,
	linux-arm-kernel, linux-snps-arc, linux-kernel,
	Thomas Zimmermann

Make architecture helpers for display functionality depend on general
video functionality instead of fbdev. This avoids the dependency on
fbdev and makes the functionality available for non-fbdev code.

Patch 1 replaces the variety of Kconfig options that control the
Makefiles with CONFIG_VIDEO. More fine-grained control of the build
can then be done within each video/ directory; see parisc for an
example.

Patch 2 replaces fb_is_primary_device() with video_is_primary_device(),
which has no dependencies on fbdev. The implementation remains identical
on all affected platforms. There's one minor change in fbcon, which is
the only caller of fb_is_primary_device().

Patch 3 renames the source and files from fbdev to video.

v2:
- improve cover letter
- rebase onto v6.9-rc1

Thomas Zimmermann (3):
  arch: Select fbdev helpers with CONFIG_VIDEO
  arch: Remove struct fb_info from video helpers
  arch: Rename fbdev header and source files

 arch/arc/include/asm/fb.h                    |  8 ------
 arch/arc/include/asm/video.h                 |  8 ++++++
 arch/arm/include/asm/fb.h                    |  6 -----
 arch/arm/include/asm/video.h                 |  6 +++++
 arch/arm64/include/asm/fb.h                  | 10 --------
 arch/arm64/include/asm/video.h               | 10 ++++++++
 arch/loongarch/include/asm/{fb.h => video.h} |  8 +++---
 arch/m68k/include/asm/{fb.h => video.h}      |  8 +++---
 arch/mips/include/asm/{fb.h => video.h}      | 12 ++++-----
 arch/parisc/Makefile                         |  2 +-
 arch/parisc/include/asm/fb.h                 | 14 -----------
 arch/parisc/include/asm/video.h              | 16 ++++++++++++
 arch/parisc/video/Makefile                   |  2 +-
 arch/parisc/video/{fbdev.c => video-sti.c}   |  9 ++++---
 arch/powerpc/include/asm/{fb.h => video.h}   |  8 +++---
 arch/powerpc/kernel/pci-common.c             |  2 +-
 arch/sh/include/asm/fb.h                     |  7 ------
 arch/sh/include/asm/video.h                  |  7 ++++++
 arch/sparc/Makefile                          |  4 +--
 arch/sparc/include/asm/{fb.h => video.h}     | 15 +++++------
 arch/sparc/video/Makefile                    |  2 +-
 arch/sparc/video/fbdev.c                     | 26 --------------------
 arch/sparc/video/video.c                     | 25 +++++++++++++++++++
 arch/x86/Makefile                            |  2 +-
 arch/x86/include/asm/fb.h                    | 19 --------------
 arch/x86/include/asm/video.h                 | 21 ++++++++++++++++
 arch/x86/video/Makefile                      |  3 ++-
 arch/x86/video/{fbdev.c => video.c}          | 21 +++++++---------
 drivers/video/fbdev/core/fbcon.c             |  2 +-
 include/asm-generic/Kbuild                   |  2 +-
 include/asm-generic/{fb.h => video.h}        | 17 +++++++------
 include/linux/fb.h                           |  2 +-
 32 files changed, 154 insertions(+), 150 deletions(-)
 delete mode 100644 arch/arc/include/asm/fb.h
 create mode 100644 arch/arc/include/asm/video.h
 delete mode 100644 arch/arm/include/asm/fb.h
 create mode 100644 arch/arm/include/asm/video.h
 delete mode 100644 arch/arm64/include/asm/fb.h
 create mode 100644 arch/arm64/include/asm/video.h
 rename arch/loongarch/include/asm/{fb.h => video.h} (86%)
 rename arch/m68k/include/asm/{fb.h => video.h} (86%)
 rename arch/mips/include/asm/{fb.h => video.h} (76%)
 delete mode 100644 arch/parisc/include/asm/fb.h
 create mode 100644 arch/parisc/include/asm/video.h
 rename arch/parisc/video/{fbdev.c => video-sti.c} (78%)
 rename arch/powerpc/include/asm/{fb.h => video.h} (76%)
 delete mode 100644 arch/sh/include/asm/fb.h
 create mode 100644 arch/sh/include/asm/video.h
 rename arch/sparc/include/asm/{fb.h => video.h} (75%)
 delete mode 100644 arch/sparc/video/fbdev.c
 create mode 100644 arch/sparc/video/video.c
 delete mode 100644 arch/x86/include/asm/fb.h
 create mode 100644 arch/x86/include/asm/video.h
 rename arch/x86/video/{fbdev.c => video.c} (66%)
 rename include/asm-generic/{fb.h => video.h} (89%)

-- 
2.44.0


^ permalink raw reply	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2024-03-28 15:01 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 20:41 [PATCH v2 0/3] arch: Remove fbdev dependency from video helpers Thomas Zimmermann
2024-03-27 20:41 ` Thomas Zimmermann
2024-03-27 20:41 ` Thomas Zimmermann
2024-03-27 20:41 ` Thomas Zimmermann
2024-03-27 20:41 ` [PATCH v2 1/3] arch: Select fbdev helpers with CONFIG_VIDEO Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-28  7:24   ` Sam Ravnborg
2024-03-28  7:24     ` Sam Ravnborg
2024-03-28  7:24     ` Sam Ravnborg
2024-03-28  7:24     ` Sam Ravnborg
2024-03-28 12:39   ` Helge Deller
2024-03-28 12:39     ` Helge Deller
2024-03-28 12:39     ` Helge Deller
2024-03-28 12:39     ` Helge Deller
2024-03-28 13:21     ` Thomas Zimmermann
2024-03-28 13:21       ` Thomas Zimmermann
2024-03-28 13:21       ` Thomas Zimmermann
2024-03-28 13:21       ` Thomas Zimmermann
2024-03-27 20:41 ` [PATCH v2 2/3] arch: Remove struct fb_info from video helpers Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-28  7:25   ` Sam Ravnborg
2024-03-28  7:25     ` Sam Ravnborg
2024-03-28  7:25     ` Sam Ravnborg
2024-03-28  7:25     ` Sam Ravnborg
2024-03-28 11:04   ` Helge Deller
2024-03-28 11:04     ` Helge Deller
2024-03-28 11:04     ` Helge Deller
2024-03-28 11:04     ` Helge Deller
2024-03-28 13:33     ` Thomas Zimmermann
2024-03-28 13:33       ` Thomas Zimmermann
2024-03-28 13:33       ` Thomas Zimmermann
2024-03-28 13:33       ` Thomas Zimmermann
2024-03-28 14:59       ` Helge Deller
2024-03-28 14:59         ` Helge Deller
2024-03-28 14:59         ` Helge Deller
2024-03-28 14:59         ` Helge Deller
2024-03-27 20:41 ` [PATCH v2 3/3] arch: Rename fbdev header and source files Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-27 20:41   ` Thomas Zimmermann
2024-03-28  7:23   ` Sam Ravnborg
2024-03-28  7:23     ` Sam Ravnborg
2024-03-28  7:23     ` Sam Ravnborg
2024-03-28  7:23     ` Sam Ravnborg
2024-03-28 12:46   ` Helge Deller
2024-03-28 12:46     ` Helge Deller
2024-03-28 12:46     ` Helge Deller
2024-03-28 12:46     ` Helge Deller
2024-03-28 12:51     ` Arnd Bergmann
2024-03-28 12:51       ` Arnd Bergmann
2024-03-28 12:51       ` Arnd Bergmann
2024-03-28 12:51       ` Arnd Bergmann
2024-03-28 13:23       ` Thomas Zimmermann
2024-03-28 13:23         ` Thomas Zimmermann
2024-03-28 13:23         ` Thomas Zimmermann
2024-03-28 13:23         ` Thomas Zimmermann
2024-03-28 13:15   ` kernel test robot
2024-03-28 13:15     ` kernel test robot
2024-03-28 13:15     ` kernel test robot
2024-03-28 13:15     ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.