1
0
forked from dan/liminix
liminix/pkgs/kernel/phram-always-memremap.patch

21 lines
478 B
Diff
Raw Normal View History

2024-12-20 22:57:31 +00:00
--- 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;
}