Files
openwrt-armor-g5/target/linux/bcm27xx/patches-6.6/950-0428-rpisense-fb-Add-explicit-fb_deferred_io_mmap-hook.patch
domenico 27c9d80f51
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Initial commit
2025-06-24 12:51:15 +02:00

27 lines
944 B
Diff

From 67142605d36d96e3ae3da3371502c284e99ee10c Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 27 Mar 2023 10:25:25 +0100
Subject: [PATCH 0428/1085] rpisense-fb: Add explicit fb_deferred_io_mmap hook
As of commit [1], introduced in 5.18, fbdev drivers that use
deferred IO and need mmap support must include an explicit fb_mmap
pointer to the fb_deferred_io_mmap.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
[1] 590558510327 ("fbdev: Put mmap for deferred I/O into drivers")
---
drivers/video/fbdev/rpisense-fb.c | 1 +
1 file changed, 1 insertion(+)
--- a/drivers/video/fbdev/rpisense-fb.c
+++ b/drivers/video/fbdev/rpisense-fb.c
@@ -191,6 +191,7 @@ static struct fb_ops rpisense_fb_ops = {
.fb_copyarea = rpisense_fb_copyarea,
.fb_imageblit = rpisense_fb_imageblit,
.fb_ioctl = rpisense_fb_ioctl,
+ .fb_mmap = fb_deferred_io_mmap,
};
static int rpisense_fb_probe(struct platform_device *pdev)