From: Stephen Warren Date: Tue, 7 Apr 2015 02:28:39 +0000 (-0600) Subject: ARM: bcm2835: use phys_to_bus() for mbox X-Git-Tag: v2015.07-rc1~408 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=122426d46e31391480c4b83b1003e4feca24d491;p=oweals%2Fu-boot.git ARM: bcm2835: use phys_to_bus() for mbox When we communicate with the VideoCore to perform property mailbox transactions, that is a DMA operation as far as the property buffer is concerned. Use phys_to_bus() on that buffer. Signed-off-by: Stephen Warren --- diff --git a/arch/arm/mach-bcm283x/mbox.c b/arch/arm/mach-bcm283x/mbox.c index 3b17a31eac..1af9be78c6 100644 --- a/arch/arm/mach-bcm283x/mbox.c +++ b/arch/arm/mach-bcm283x/mbox.c @@ -7,6 +7,7 @@ #include #include #include +#include #define TIMEOUT 1000 /* ms */ @@ -110,10 +111,10 @@ int bcm2835_mbox_call_prop(u32 chan, struct bcm2835_mbox_hdr *buffer) dump_buf(buffer); #endif - ret = bcm2835_mbox_call_raw(chan, (u32)buffer, &rbuffer); + ret = bcm2835_mbox_call_raw(chan, phys_to_bus((u32)buffer), &rbuffer); if (ret) return ret; - if (rbuffer != (u32)buffer) { + if (rbuffer != phys_to_bus((u32)buffer)) { printf("mbox: Response buffer mismatch\n"); return -1; }