OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0725ac9
)
dmaengine: tegra20-apb: stop checking config->slave_id
author
Arnd Bergmann
<arnd@arndb.de>
Mon, 22 Nov 2021 22:22:02 +0000
(23:22 +0100)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 17 Dec 2021 05:53:38 +0000
(11:23 +0530)
Nothing sets the slave_id field any more, so stop accessing
it to allow the removal of this field.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20211122222203.4103644-11-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra20-apb-dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/tegra20-apb-dma.c
b/drivers/dma/tegra20-apb-dma.c
index
b726074
..
eaafcbe
100644
(file)
--- a/
drivers/dma/tegra20-apb-dma.c
+++ b/
drivers/dma/tegra20-apb-dma.c
@@
-343,12
+343,6
@@
static int tegra_dma_slave_config(struct dma_chan *dc,
}
memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig));
- if (tdc->slave_id == TEGRA_APBDMA_SLAVE_ID_INVALID &&
- sconfig->device_fc) {
- if (sconfig->slave_id > TEGRA_APBDMA_CSR_REQ_SEL_MASK)
- return -EINVAL;
- tdc->slave_id = sconfig->slave_id;
- }
tdc->config_init = true;
return 0;