summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/switch_endian/common.h
blob: 69e399698c6483fdb50c3f8a76f2708fbb4b940d (plain)
1
2
3
4
5
6
#include <ppc-asm.h>
#include <asm/unistd.h>

#ifndef __NR_switch_endian
#define __NR_switch_endian 363
#endif
href='/cgit.cgi/linux/net-next.git/commit/?id=9b1b2b3adb310560a31ea248fa0defc8f09129ff'>9b1b2b3adb310560a31ea248fa0defc8f09129ff (diff)
mailbox: bcm-pdc: Changes so mbox client can be removed / re-inserted
Ensure that DMA is disabled, and pointers reset, when changing DMA base addresses in pdc_ring_init(). This allows a mailbox client to be re-inserted after being removed. Otherwise, the DMA doesn't restart so the client hangs while being reinserted. Signed-off-by: Steve Lin <steven.lin1@broadcom.com> Signed-off-by: Rob Rice <rob.rice@broadcom.com> Reviewed-by: Andy Gospodarek <gospo@broadcom.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat
-rw-r--r--drivers/mailbox/bcm-pdc-mailbox.c54
1 files changed, 46 insertions, 8 deletions
diff --git a/drivers/mailbox/bcm-pdc-mailbox.c b/drivers/mailbox/bcm-pdc-mailbox.c