kernel: bump 6.1 to 6.1.66
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0605-rpisense-fb-Add-explicit-fb_deferred_io_mmap-hook.patch
1 From 4b9950c6574aa5c9302b3b8bbf44fd31ee1cad7a Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 27 Mar 2023 10:25:25 +0100
4 Subject: [PATCH] rpisense-fb: Add explicit fb_deferred_io_mmap hook
5
6 As of commit [1], introduced in 5.18, fbdev drivers that use
7 deferred IO and need mmap support must include an explicit fb_mmap
8 pointer to the fb_deferred_io_mmap.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11
12 [1] 590558510327 ("fbdev: Put mmap for deferred I/O into drivers")
13 ---
14 drivers/video/fbdev/rpisense-fb.c | 1 +
15 1 file changed, 1 insertion(+)
16
17 --- a/drivers/video/fbdev/rpisense-fb.c
18 +++ b/drivers/video/fbdev/rpisense-fb.c
19 @@ -191,6 +191,7 @@ static struct fb_ops rpisense_fb_ops = {
20 .fb_copyarea = rpisense_fb_copyarea,
21 .fb_imageblit = rpisense_fb_imageblit,
22 .fb_ioctl = rpisense_fb_ioctl,
23 + .fb_mmap = fb_deferred_io_mmap,
24 };
25
26 static int rpisense_fb_probe(struct platform_device *pdev)