From: anup.patel@broadcom.com (Anup Patel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mailbox: bcm-flexrm-mailbox: Fix typo in dma_mask setup
Date: Wed, 17 May 2017 13:24:50 +0530 [thread overview]
Message-ID: <1495007690-14146-1-git-send-email-anup.patel@broadcom.com> (raw)
The output address of Broadcom FlexRM is 39bits and not
40bits hence we fix dma_mask setup in flexrm_mbox_probe()
accordingly.
Fixes: dbc049eee730 ("mailbox: Add driver for Broadcom
FlexRM ring manager")
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
---
drivers/mailbox/bcm-flexrm-mailbox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c
index da67882..6aeac6e 100644
--- a/drivers/mailbox/bcm-flexrm-mailbox.c
+++ b/drivers/mailbox/bcm-flexrm-mailbox.c
@@ -1479,8 +1479,8 @@ static int flexrm_mbox_probe(struct platform_device *pdev)
ring->cmpl_read_offset = 0;
}
- /* FlexRM is capable of 40-bit physical addresses only */
- ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40));
+ /* FlexRM is capable of 39-bit physical addresses only */
+ ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(39));
if (ret) {
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
if (ret)
--
2.7.4
reply other threads:[~2017-05-17 7:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1495007690-14146-1-git-send-email-anup.patel@broadcom.com \
--to=anup.patel@broadcom.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).