From: Yi Wang <wang.yi59@zte.com.cn>
To: stuyoder@gmail.com
Cc: laurentiu.tudor@nxp.com, linux-kernel@vger.kernel.org,
xue.zhihong@zte.com.cn, wang.yi59@zte.com.cn,
wang.liang82@zte.com.cn, 王业超10154425 <wang.yechao255@zte.com.cn>
Subject: [PATCH] bus: fsl-mc: Fix dma coherent not avaiable
Date: Wed, 27 Oct 2021 09:24:41 +0800 [thread overview]
Message-ID: <20211027012441.10091-1-wang.yi59@zte.com.cn> (raw)
From: 王业超10154425 <wang.yechao255@zte.com.cn>
Commit "a081bd4a" change the third argument of of_dma_configure_id,
from 1 to 0, and then the dpni cannot inherit the dma_coherent from
fsl-mc bus on fsl-lx2160a.
Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
---
drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c
index 8fd4a35..74dc47b 100644
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
@@ -146,7 +146,7 @@ static int fsl_mc_dma_configure(struct device *dev)
dma_dev = dma_dev->parent;
if (dev_of_node(dma_dev))
- return of_dma_configure_id(dev, dma_dev->of_node, 0, &input_id);
+ return of_dma_configure_id(dev, dma_dev->of_node, 1, &input_id);
return acpi_dma_configure_id(dev, DEV_DMA_COHERENT, &input_id);
}
--
1.8.3.1
reply other threads:[~2021-10-27 1:45 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=20211027012441.10091-1-wang.yi59@zte.com.cn \
--to=wang.yi59@zte.com.cn \
--cc=laurentiu.tudor@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stuyoder@gmail.com \
--cc=wang.liang82@zte.com.cn \
--cc=wang.yechao255@zte.com.cn \
--cc=xue.zhihong@zte.com.cn \
/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
all inboxes | Powered by JetHome®