Skip to content

Commit d7bf31a

Browse files
rayagondaJassiBrar
authored andcommitted
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: a371c10 ("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>
1 parent 4f05577 commit d7bf31a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mailbox/bcm-flexrm-mailbox.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,9 @@ static void flexrm_shutdown(struct mbox_chan *chan)
13961396

13971397
/* Clear ring flush state */
13981398
timeout = 1000; /* timeout of 1s */
1399-
writel_relaxed(0x0, ring + RING_CONTROL);
1399+
writel_relaxed(0x0, ring->regs + RING_CONTROL);
14001400
do {
1401-
if (!(readl_relaxed(ring + RING_FLUSH_DONE) &
1401+
if (!(readl_relaxed(ring->regs + RING_FLUSH_DONE) &
14021402
FLUSH_DONE_MASK))
14031403
break;
14041404
mdelay(1);

0 commit comments

Comments
 (0)