Skip to content

Commit 301e361

Browse files
committed
Merge tag 'mailbox-fixes-v5.0-rc7' of git://git.linaro.org/landing-teams/working/fujitsu/integration
Pull mailbox fixes from Jassi Brar: - API: Fix build breakge by exporting the function mbox_flush - BRCM: Fix FlexRM ring flush timeout issue * tag 'mailbox-fixes-v5.0-rc7' of git://git.linaro.org/landing-teams/working/fujitsu/integration: mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush timeout issue mailbox: Export mbox_flush()
2 parents 3ddc14e + d7bf31a commit 301e361

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-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);

drivers/mailbox/mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ int mbox_flush(struct mbox_chan *chan, unsigned long timeout)
310310

311311
return ret;
312312
}
313+
EXPORT_SYMBOL_GPL(mbox_flush);
313314

314315
/**
315316
* mbox_request_channel - Request a mailbox channel.

0 commit comments

Comments
 (0)