linux-stable/drivers/video/fbdev/omap
Thomas Zimmermann 76f92201b8 fbdev: Push pgprot_decrypted() into mmap implementations
If a driver sets struct fb_ops.fb_mmap, the fbdev core automatically
calls pgprot_decrypted(). But the default fb_mmap code doesn't handle
pgprot_decrypted().

Move the call to pgprot_decrypted() into each drivers' fb_mmap function.
This only concerns fb_mmap functions for system and DMA memory. For
I/O memory, which is the default case, nothing changes. The fb_mmap
for I/O-memory can later be moved into a helper as well.

DRM's fbdev emulation handles pgprot_decrypted() internally via the
Prime helpers. Fbdev doesn't have to do anything in this case. In
cases where DRM uses deferred I/O, this patch updates fb_mmap correctly.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-30-tzimmermann@suse.de
2023-11-29 12:20:44 +01:00
..
Kconfig fbdev/omapfb: Use fbdev I/O helpers 2023-08-04 15:54:37 +02:00
Makefile fbdev: omapfb: remove omap1 osk driver 2023-03-14 18:49:47 +01:00
hwa742.c video: fbdev: omapfb: Unexport omap*_update_window_async() 2022-07-18 07:56:40 +02:00
lcd_ams_delta.c fbdev: omap: avoid using mach/*.h files 2022-04-21 15:01:14 +02:00
lcd_dma.c fbdev: omap: avoid using mach/*.h files 2022-04-21 15:01:14 +02:00
lcd_dma.h ARM: omap1: move lcd_dma code into omapfb driver 2022-04-21 15:00:45 +02:00
lcd_mipid.c fbdev fixes for 6.5-rc1: 2023-06-29 10:20:38 -07:00
lcd_palmte.c
lcdc.c ARM: omap1: remove dead code 2023-01-12 10:53:11 +01:00
lcdc.h ARM: omap1: move lcd_dma code into omapfb driver 2022-04-21 15:00:45 +02:00
omapfb.h video: fbdev: omapfb: Unexport omap*_update_window_async() 2022-07-18 07:56:40 +02:00
omapfb_main.c fbdev: Push pgprot_decrypted() into mmap implementations 2023-11-29 12:20:44 +01:00
sossi.c video: fbdev: omap: Remove duplicate 'the' in comment 2022-06-22 16:55:51 +02:00