mailbox: bcm-pdc: Changes so mbox client can be removed / re-inserted
authorSteve Lin <steven.lin1@broadcom.com>
Mon, 14 Nov 2016 18:25:56 +0000 (13:25 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Mon, 19 Dec 2016 14:40:18 +0000 (20:10 +0530)
commit9fb0f9ac54b393ddfe49be7da7751f02bb133db6
tree177d10101dea874b39f5b518f022568b09c25df5
parent9b1b2b3adb310560a31ea248fa0defc8f09129ff
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>
drivers/mailbox/bcm-pdc-mailbox.c