summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorRené Rebe <rene@exactco.de>2025-11-20 14:24:00 +0100
committerHelge Deller <deller@gmx.de>2025-12-02 19:44:05 +0100
commit35fa2b4bf96415b88d7edaa5cf8af5185d9ce76e (patch)
tree730b3efec7bb0f9474fae491c5a09fcddebe2fca /drivers/video
parent7ecb5c36b1360dd127e02e1d300dd07d764095cd (diff)
fbdev: tcx.c fix mem_map to correct smem_start offset
403ae52ac047 ("sparc: fix drivers/video/tcx.c warning") changed the physbase initializing breaking the user-space mmap, e.g. for Xorg entirely. Fix fbdev mmap table so the sbus mmap helper work correctly, and not try to map vastly (physbase) offset memory. Fixes: 403ae52ac047 ("sparc: fix drivers/video/tcx.c warning") Cc: <stable@vger.kernel.org> Signed-off-by: René Rebe <rene@exactco.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/tcx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/tcx.c b/drivers/video/fbdev/tcx.c
index f9a0085ad72b..ca9e84e8d860 100644
--- a/drivers/video/fbdev/tcx.c
+++ b/drivers/video/fbdev/tcx.c
@@ -428,7 +428,7 @@ static int tcx_probe(struct platform_device *op)
j = i;
break;
}
- par->mmap_map[i].poff = op->resource[j].start;
+ par->mmap_map[i].poff = op->resource[j].start - info->fix.smem_start;
}
info->fbops = &tcx_ops;