Skip to content

Commit 86fdf61

Browse files
committed
Merge tag 'drm-misc-fixes-2020-10-01' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
drm-misc-fixes for v5.9: - Small doc fix. - Re-add FB_ARMCLCD for android. - Fix global-out-of-bounds read in fbcon_get_font(). Signed-off-by: Dave Airlie <[email protected]> From: Maarten Lankhorst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 549738f + 27204b9 commit 86fdf61

25 files changed

+1469
-68
lines changed

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,11 @@ S: Odd Fixes
14601460
F: drivers/amba/
14611461
F: include/linux/amba/bus.h
14621462

1463+
ARM PRIMECELL CLCD PL110 DRIVER
1464+
M: Russell King <[email protected]>
1465+
S: Odd Fixes
1466+
F: drivers/video/fbdev/amba-clcd.*
1467+
14631468
ARM PRIMECELL KMI PL050 DRIVER
14641469
M: Russell King <[email protected]>
14651470
S: Odd Fixes

drivers/video/console/newport_con.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535

3636
#define FONT_DATA ((unsigned char *)font_vga_8x16.data)
3737

38-
/* borrowed from fbcon.c */
39-
#define REFCOUNT(fd) (((int *)(fd))[-1])
40-
#define FNTSIZE(fd) (((int *)(fd))[-2])
41-
#define FNTCHARCNT(fd) (((int *)(fd))[-3])
42-
#define FONT_EXTRA_WORDS 3
43-
4438
static unsigned char *font_data[MAX_NR_CONSOLES];
4539

4640
static struct newport_regs *npregs;
@@ -522,6 +516,7 @@ static int newport_set_font(int unit, struct console_font *op)
522516
FNTSIZE(new_data) = size;
523517
FNTCHARCNT(new_data) = op->charcount;
524518
REFCOUNT(new_data) = 0; /* usage counter */
519+
FNTSUM(new_data) = 0;
525520

526521
p = new_data;
527522
for (i = 0; i < op->charcount; i++) {

drivers/video/fbdev/Kconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,26 @@ config FB_PM2_FIFO_DISCONNECT
272272
help
273273
Support the Permedia2 FIFO disconnect feature.
274274

275+
config FB_ARMCLCD
276+
tristate "ARM PrimeCell PL110 support"
277+
depends on ARM || ARM64 || COMPILE_TEST
278+
depends on FB && ARM_AMBA && HAS_IOMEM
279+
select FB_CFB_FILLRECT
280+
select FB_CFB_COPYAREA
281+
select FB_CFB_IMAGEBLIT
282+
select FB_MODE_HELPERS if OF
283+
select VIDEOMODE_HELPERS if OF
284+
select BACKLIGHT_CLASS_DEVICE if OF
285+
help
286+
This framebuffer device driver is for the ARM PrimeCell PL110
287+
Colour LCD controller. ARM PrimeCells provide the building
288+
blocks for System on a Chip devices.
289+
290+
If you want to compile this as a module (=code which can be
291+
inserted into and removed from the running kernel), say M
292+
here and read <file:Documentation/kbuild/modules.rst>. The module
293+
will be called amba-clcd.
294+
275295
config FB_ACORN
276296
bool "Acorn VIDC support"
277297
depends on (FB = y) && ARM && ARCH_ACORN

drivers/video/fbdev/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ obj-$(CONFIG_FB_HIT) += hitfb.o
7575
obj-$(CONFIG_FB_ATMEL) += atmel_lcdfb.o
7676
obj-$(CONFIG_FB_PVR2) += pvr2fb.o
7777
obj-$(CONFIG_FB_VOODOO1) += sstfb.o
78+
obj-$(CONFIG_FB_ARMCLCD) += amba-clcd.o
7879
obj-$(CONFIG_FB_GOLDFISH) += goldfishfb.o
7980
obj-$(CONFIG_FB_68328) += 68328fb.o
8081
obj-$(CONFIG_FB_GBE) += gbefb.o

0 commit comments

Comments
 (0)