From: pandith.n@intel.com
To: vkoul@kernel.org, eugeniy.paltsev@synopsys.com,
dmaengine@vger.kernel.org
Cc: andriy.shevchenko@linux.intel.com,
mallikarjunappa.sangannavar@intel.com,
srikanth.thokala@intel.com, kenchappa.demakkanavar@intel.com,
Pandith N <pandith.n@intel.com>
Subject: [PATCH V3 2/3] dmaengine: dw-axi-dmac: Hardware handshake configuration
Date: Fri, 1 Oct 2021 19:38:11 +0530 [thread overview]
Message-ID: <20211001140812.24977-3-pandith.n@intel.com> (raw)
In-Reply-To: <20211001140812.24977-1-pandith.n@intel.com>
From: Pandith N <pandith.n@intel.com>
Added hardware handshake selection in channel config,
for mem2per and per2mem case.
The peripheral specific handshake interface needs to be
programmed in src_per, dst_per bits of CHx_CFG register.
Signed-off-by: Pandith N <pandith.n@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index 9a8231244c42..f46fd9895a13 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -396,6 +396,8 @@ static void axi_chan_block_xfer_start(struct axi_dma_chan *chan,
DWAXIDMAC_TT_FC_MEM_TO_PER_DMAC;
if (chan->chip->apb_regs)
config.dst_per = chan->id;
+ else
+ config.dst_per = chan->hw_handshake_num;
break;
case DMA_DEV_TO_MEM:
config.tt_fc = chan->config.device_fc ?
@@ -403,6 +405,8 @@ static void axi_chan_block_xfer_start(struct axi_dma_chan *chan,
DWAXIDMAC_TT_FC_PER_TO_MEM_DMAC;
if (chan->chip->apb_regs)
config.src_per = chan->id;
+ else
+ config.src_per = chan->hw_handshake_num;
break;
default:
break;
--
2.17.1
next prev parent reply other threads:[~2021-10-01 14:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 14:08 [PATCH V3 0/3] Add DMA support for transfers in multiple cases pandith.n
2021-10-01 14:08 ` [PATCH V3 1/3] dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8 pandith.n
2021-10-26 12:09 ` Geert Uytterhoeven
2021-10-26 13:22 ` N, Pandith
2021-10-01 14:08 ` pandith.n [this message]
2021-10-01 14:08 ` [PATCH V3 3/3] dmaengine: dw-axi-dmac: set coherent mask pandith.n
2021-10-18 6:44 ` [PATCH V3 0/3] Add DMA support for transfers in multiple cases Vinod Koul
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=20211001140812.24977-3-pandith.n@intel.com \
--to=pandith.n@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=eugeniy.paltsev@synopsys.com \
--cc=kenchappa.demakkanavar@intel.com \
--cc=mallikarjunappa.sangannavar@intel.com \
--cc=srikanth.thokala@intel.com \
--cc=vkoul@kernel.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