diff options
author | Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> | 2019-02-04 11:21:29 -0800 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2019-02-18 10:40:58 -0600 |
commit | d7bf31a0f85faaf63c63c39d55154825a1eaaea9 (patch) | |
tree | ebfc8e942bf150512df9d7c6fd5552e7ace8d021 | |
parent | 4f0557795e76d049f0a1687f1f050addf4df2dac (diff) | |
download | blackbird-obmc-linux-d7bf31a0f85faaf63c63c39d55154825a1eaaea9.tar.gz blackbird-obmc-linux-d7bf31a0f85faaf63c63c39d55154825a1eaaea9.zip |
mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue
RING_CONTROL reg was not written due to wrong address, hence all
the subsequent ring flush was timing out.
Fixes: a371c10ea4b3 ("mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence")
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r-- | drivers/mailbox/bcm-flexrm-mailbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c index d713271ebf7c..a64116586b4c 100644 --- a/drivers/mailbox/bcm-flexrm-mailbox.c +++ b/drivers/mailbox/bcm-flexrm-mailbox.c @@ -1396,9 +1396,9 @@ static void flexrm_shutdown(struct mbox_chan *chan) /* Clear ring flush state */ timeout = 1000; /* timeout of 1s */ - writel_relaxed(0x0, ring + RING_CONTROL); + writel_relaxed(0x0, ring->regs + RING_CONTROL); do { - if (!(readl_relaxed(ring + RING_FLUSH_DONE) & + if (!(readl_relaxed(ring->regs + RING_FLUSH_DONE) & FLUSH_DONE_MASK)) break; mdelay(1); |