bus: mvebu-mbus: Restore checking for coherency fabric hardware
authorNeil Greatorex <neil@fatboyfat.co.uk>
Sat, 30 Mar 2013 20:41:20 +0000 (20:41 +0000)
committerJason Cooper <jason@lakedaemon.net>
Sat, 30 Mar 2013 21:11:40 +0000 (21:11 +0000)
The new mvebu-mbus driver was not checking the device tree for
coherency fabric hardware and hence was not setting the hw_io_coherency
flag in mbus_state. This prevented the mvsdio driver from operating
correctly. This patch restores the check.

Signed-off-by: Neil Greatorex <neil@fatboyfat.co.uk>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/bus/mvebu-mbus.c

index 586d03e29e9e07ed52b38c89ff3ea1d57ce727e5..a0250c65440e4c5debb7ef3a470fd319a39a7764 100644 (file)
@@ -858,6 +858,9 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base,
                return -ENOMEM;
        }
 
+       if (of_find_compatible_node(NULL, NULL, "marvell,coherency-fabric"))
+               mbus->hw_io_coherency = 1;
+
        for (win = 0; win < mbus->soc->num_wins; win++)
                mvebu_mbus_disable_window(mbus, win);