Skip to content

Commit

Permalink
Merge tag 'mailbox-fixes-v5.0-rc7' of git://git.linaro.org/landing-te…
Browse files Browse the repository at this point in the history
…ams/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()
  • Loading branch information
Linus Torvalds committed Feb 18, 2019
2 parents 3ddc14e + d7bf31a commit 301e361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mailbox/bcm-flexrm-mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions drivers/mailbox/mailbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ int mbox_flush(struct mbox_chan *chan, unsigned long timeout)

return ret;
}
EXPORT_SYMBOL_GPL(mbox_flush);

/**
* mbox_request_channel - Request a mailbox channel.
Expand Down

0 comments on commit 301e361

Please sign in to comment.