This patch disables the execute-in-place (XIP) support for flash on lantiq. This has to be disabled since the bus which flash is connected to does not support unaligned accesses. Resolves data bus errors on Lantiq routers with Intel command set flash.

Signed-off-by: Matti Laakso <[email protected]>
---
--- a/drivers/mtd/maps/lantiq-flash.c
+++ b/drivers/mtd/maps/lantiq-flash.c
@@ -134,7 +134,7 @@ ltq_mtd_probe(struct platform_device *pd
     }

     ltq_mtd->map = kzalloc(sizeof(struct map_info), GFP_KERNEL);
-    ltq_mtd->map->phys = ltq_mtd->res->start;
+    ltq_mtd->map->phys = NO_XIP;
     ltq_mtd->map->size = resource_size(ltq_mtd->res);
ltq_mtd->map->virt = devm_request_and_ioremap(&pdev->dev, ltq_mtd->res);
     if (!ltq_mtd->map->virt) {
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to