1
0
forked from dan/liminix
liminix/pkgs/kernel/phram-always-memremap.patch
Arnout Engelen e26cb2b3c2
more WiP
2025-01-05 15:27:37 +01:00

21 lines
478 B
Diff

--- a/drivers/mtd/devices/phram.c 2024-12-20 23:42:19.248462526 +0100
+++ b/drivers/mtd/devices/phram.c 2024-12-20 23:41:11.344218259 +0100
@@ -85,7 +85,7 @@
{
void *addr = NULL;
- if (phram->cached)
+ if (phram->cached || true)
addr = memremap(start, len, MEMREMAP_WB);
else
addr = (void __force *)ioremap(start, len);
@@ -101,7 +101,7 @@
{
void *addr = phram->mtd.priv;
- if (phram->cached) {
+ if (phram->cached || true) {
memunmap(addr);
return;
}