spi: Use dma_request_chan() directly for channel request
Subsystems (12)
cover spi: Use dma_request_chan() directly for channel request
Hi,
I'm going through the tree to remove dma_request_slave_channel_reason() as it is just:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
Regards,
Peter
---
Peter Ujfalusi (9):
spi: at91-usart: Use dma_request_chan() directly for channel request
spi: atmel: Use dma_request_chan() directly for channel request
spi: fsl-lpspi: Use dma_request_chan() directly for channel request
spi: imx: Use dma_request_chan() directly for channel request
spi: pl022: Use dma_request_chan() directly for channel request
spi: qup: Use dma_request_chan() directly for channel request
spi: s3c64xx: Use dma_request_chan() directly for channel request
spi: tegra114: Use dma_request_chan() directly for channel request
spi: tegra20-slink: Use dma_request_chan() directly for channel
request
drivers/spi/spi-at91-usart.c | 4 ++-- drivers/spi/spi-atmel.c | 2 +- drivers/spi/spi-fsl-lpspi.c | 4 ++-- drivers/spi/spi-imx.c | 4 ++-- drivers/spi/spi-pl022.c | 4 ++-- drivers/spi/spi-qup.c | 4 ++-- drivers/spi/spi-s3c64xx.c | 6 ++---- drivers/spi/spi-tegra114.c | 3 +-- drivers/spi/spi-tegra20-slink.c | 3 +-- 9 files changed, 15 insertions(+), 19 deletions(-)
Signature · 10 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/9 spi: at91-usart: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-at91-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-at91-usart.c +2 -2
@@ -132,7 +132,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - ctlr->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + ctlr->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR_OR_NULL (ctlr->dma_tx)) {if (IS_ERR (ctlr->dma_tx)) { err =PTR_ERR (ctlr->dma_tx);
@@ -145,7 +145,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, goto at91_usart_spi_error_clear; } - ctlr->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + ctlr->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR_OR_NULL (ctlr->dma_rx)) {if (IS_ERR (ctlr->dma_rx)) { err =PTR_ERR (ctlr->dma_rx);
Signature · 10 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 1/9] spi: at91-usart: Use dma_request_chan() directly for channel request
Quoted 8 lines · Peter Ujfalusi
External E-Mail
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>
Quoted 27 lines
--- drivers/spi/spi-at91-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/spi/spi-at91-usart.c +2
-2@@ -132,7 +132,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - ctlr->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + ctlr->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR_OR_NULL (ctlr->dma_tx)) {if (IS_ERR (ctlr->dma_tx)) { err =PTR_ERR (ctlr->dma_tx);@@ -145,7 +145,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, goto at91_usart_spi_error_clear; } - ctlr->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + ctlr->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR_OR_NULL (ctlr->dma_rx)) {if (IS_ERR (ctlr->dma_rx)) { err =PTR_ERR (ctlr->dma_rx);
Signature · 1 line
Nicolas Ferre
Mark Brown
maintainerApplied "spi: at91-usart: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: at91-usart: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
cef76e5ace759848e78323a14df0dcd66b8de13dMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:48 +0200
Subject: [PATCH] spi: at91-usart: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-at91-usart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-at91-usart.c +2 -2
@@ -132,7 +132,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - ctlr->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + ctlr->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR_OR_NULL (ctlr->dma_tx)) {if (IS_ERR (ctlr->dma_tx)) { err =PTR_ERR (ctlr->dma_tx);
@@ -145,7 +145,7 @@ static int at91_usart_spi_configure_dma(struct spi_controller *ctlr, goto at91_usart_spi_error_clear; } - ctlr->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + ctlr->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR_OR_NULL (ctlr->dma_rx)) {if (IS_ERR (ctlr->dma_rx)) { err =PTR_ERR (ctlr->dma_rx);
Signature · 1 line
2.20.1
PATCH 2/9 spi: atmel: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-atmel.c +1 -1
@@ -511,7 +511,7 @@ static int atmel_spi_configure_dma(struct spi_master *master,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { err =PTR_ERR (master->dma_tx);if (err == -EPROBE_DEFER ) {
Signature · 10 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 2/9] spi: atmel: Use dma_request_chan() directly for channel request
Quoted 6 lines · Peter Ujfalusi
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>
I'm not sure we need one patch per driver. If series taken:
Quoted 18 lines
--- drivers/spi/spi-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-atmel.c +1
-1@@ -511,7 +511,7 @@ static int atmel_spi_configure_dma(struct spi_master *master,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { err =PTR_ERR (master->dma_tx);if (err == -EPROBE_DEFER ) {
Signature · 1 line
Nicolas Ferre
Mark Brown
maintainerApplied "spi: atmel: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: atmel: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
bef1e0c8f74c87e7427cb98b2e76caf046c7b65aMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:49 +0200
Subject: [PATCH] spi: atmel: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-atmel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-atmel.c +1 -1
@@ -512,7 +512,7 @@ static int atmel_spi_configure_dma(struct spi_master *master,dma_cap_zero (mask);dma_cap_set (DMA_SLAVE , mask); - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { err =PTR_ERR (master->dma_tx);if (err == -EPROBE_DEFER ) {
Signature · 1 line
2.20.1
PATCH 3/9 spi: fsl-lpspi: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-fsl-lpspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-fsl-lpspi.c +2 -2
@@ -675,7 +675,7 @@ static int fsl_lpspi_dma_init(struct device *dev,int ret;/* Prepare for TX DMA: */ - controller->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + controller->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (controller->dma_tx)) { ret =PTR_ERR (controller->dma_tx);dev_dbg (dev,"can't get the TX DMA channel, error %d!\n" , ret);
@@ -684,7 +684,7 @@ static int fsl_lpspi_dma_init(struct device *dev, }/* Prepare for RX DMA: */ - controller->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + controller->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (controller->dma_rx)) { ret =PTR_ERR (controller->dma_rx);dev_dbg (dev,"can't get the RX DMA channel, error %d\n" , ret);
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Mark Brown
maintainerApplied "spi: fsl-lpspi: Use dma_request_chan() directly for channel request" to the spi tree
The patch
spi: fsl-lpspi: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
2e33f310dcfbceb7492d7e88baa9ca4f056f7c40Mon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:50 +0200
Subject: [PATCH] spi: fsl-lpspi: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-fsl-lpspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-fsl-lpspi.c +2 -2
@@ -675,7 +675,7 @@ static int fsl_lpspi_dma_init(struct device *dev,int ret;/* Prepare for TX DMA: */ - controller->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + controller->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (controller->dma_tx)) { ret =PTR_ERR (controller->dma_tx);dev_dbg (dev,"can't get the TX DMA channel, error %d!\n" , ret);
@@ -684,7 +684,7 @@ static int fsl_lpspi_dma_init(struct device *dev, }/* Prepare for RX DMA: */ - controller->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + controller->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (controller->dma_rx)) { ret =PTR_ERR (controller->dma_rx);dev_dbg (dev,"can't get the RX DMA channel, error %d\n" , ret);
Signature · 1 line
2.20.1
PATCH 4/9 spi: imx: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-imx.c +2 -2
@@ -1272,7 +1272,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, spi_imx->wml = spi_imx->devtype_data->fifo_size /2 ;/* Prepare for TX DMA: */ - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { ret =PTR_ERR (master->dma_tx);dev_dbg (dev,"can't get the TX DMA channel, error %d!\n" , ret);
@@ -1281,7 +1281,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, }/* Prepare for RX : */ - master->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + master->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (master->dma_rx)) { ret =PTR_ERR (master->dma_rx);dev_dbg (dev,"can't get the RX DMA channel, error %d\n" , ret);
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Mark Brown
maintainerApplied "spi: imx: Use dma_request_chan() directly for channel request" to the spi tree
The patch
spi: imx: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
5d3aa9ccf40cdc9b94d1a708d11de9062e2d9eedMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:51 +0200
Subject: [PATCH] spi: imx: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-imx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-imx.c +2 -2
@@ -1272,7 +1272,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, spi_imx->wml = spi_imx->devtype_data->fifo_size /2 ;/* Prepare for TX DMA: */ - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { ret =PTR_ERR (master->dma_tx);dev_dbg (dev,"can't get the TX DMA channel, error %d!\n" , ret);
@@ -1281,7 +1281,7 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, }/* Prepare for RX : */ - master->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + master->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (master->dma_rx)) { ret =PTR_ERR (master->dma_rx);dev_dbg (dev,"can't get the RX DMA channel, error %d\n" , ret);
Signature · 1 line
2.20.1
PATCH 5/9 spi: pl022: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-pl022.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-pl022.c +2 -2
@@ -1158,7 +1158,7 @@ static int pl022_dma_autoprobe(struct pl022 *pl022)int err;/* automatically configure DMA channels from platform, normally using DT */ - chan =dma_request_slave_channel_reason (dev,"rx" ); + chan =dma_request_chan (dev,"rx" );if (IS_ERR (chan)) { err =PTR_ERR (chan); goto err_no_rxchan;
@@ -1166,7 +1166,7 @@ static int pl022_dma_autoprobe(struct pl022 *pl022) pl022->dma_rx_channel = chan; - chan =dma_request_slave_channel_reason (dev,"tx" ); + chan =dma_request_chan (dev,"tx" );if (IS_ERR (chan)) { err =PTR_ERR (chan); goto err_no_txchan;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 5/9] spi: pl022: Use dma_request_chan() directly for channel request
Quoted 5 lines · Peter Ujfalusi
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>
Yours,
Linus Walleij
Mark Brown
maintainerApplied "spi: pl022: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: pl022: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
c1008957ff1aee0ac92c28c55947173fb68cd451Mon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:52 +0200
Subject: [PATCH] spi: pl022: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-pl022.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-pl022.c +2 -2
@@ -1158,7 +1158,7 @@ static int pl022_dma_autoprobe(struct pl022 *pl022)int err;/* automatically configure DMA channels from platform, normally using DT */ - chan =dma_request_slave_channel_reason (dev,"rx" ); + chan =dma_request_chan (dev,"rx" );if (IS_ERR (chan)) { err =PTR_ERR (chan); goto err_no_rxchan;
@@ -1166,7 +1166,7 @@ static int pl022_dma_autoprobe(struct pl022 *pl022) pl022->dma_rx_channel = chan; - chan =dma_request_slave_channel_reason (dev,"tx" ); + chan =dma_request_chan (dev,"tx" );if (IS_ERR (chan)) { err =PTR_ERR (chan); goto err_no_txchan;
Signature · 1 line
2.20.1
PATCH 6/9 spi: qup: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-qup.c +2 -2
@@ -932,11 +932,11 @@ static int spi_qup_init_dma(struct spi_master *master, resource_size_t base)int ret;/* allocate dma resources, if available */ - master->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + master->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (master->dma_rx))return PTR_ERR (master->dma_rx); - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { ret =PTR_ERR (master->dma_tx); goto err_tx;
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Mark Brown
maintainerApplied "spi: qup: Use dma_request_chan() directly for channel request" to the spi tree
The patch
spi: qup: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
194e1d4bc262c2d23ba9a8a5c03855c372ea1b5cMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:53 +0200
Subject: [PATCH] spi: qup: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-qup.c +2 -2
@@ -932,11 +932,11 @@ static int spi_qup_init_dma(struct spi_master *master, resource_size_t base)int ret;/* allocate dma resources, if available */ - master->dma_rx =dma_request_slave_channel_reason (dev,"rx" ); + master->dma_rx =dma_request_chan (dev,"rx" );if (IS_ERR (master->dma_rx))return PTR_ERR (master->dma_rx); - master->dma_tx =dma_request_slave_channel_reason (dev,"tx" ); + master->dma_tx =dma_request_chan (dev,"tx" );if (IS_ERR (master->dma_tx)) { ret =PTR_ERR (master->dma_tx); goto err_tx;
Signature · 1 line
2.20.1
PATCH 7/9 spi: s3c64xx: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/spi/spi-s3c64xx.c +2 -4
@@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)if (!is_polling (sdd)) {/* Acquire DMA channels */ - sdd->rx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"rx" ); + sdd->rx_dma.ch =dma_request_chan (&pdev->dev,"rx" );if (IS_ERR (sdd->rx_dma.ch)) {dev_err (&pdev->dev,"Failed to get RX DMA channel\n" ); ret =PTR_ERR (sdd->rx_dma.ch); goto err_disable_io_clk; } - sdd->tx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"tx" ); + sdd->tx_dma.ch =dma_request_chan (&pdev->dev,"tx" );if (IS_ERR (sdd->tx_dma.ch)) {dev_err (&pdev->dev,"Failed to get TX DMA channel\n" ); ret =PTR_ERR (sdd->tx_dma.ch);
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request
Hi Peter,
drivers/spi/spi-s3c64xx.c static int s3c64xx_spi_probe(struct platform_device *pdev) · line 1157
Quoted 5 lines
drivers/spi/spi-s3c64xx.c +1
-2if (!is_polling (sdd)) {/* Acquire DMA channels */ - sdd->rx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"rx" ); + sdd->rx_dma.ch =dma_request_chan (&pdev->dev,"rx" );
I have a little concern here. We have two funcions 'dma_request_chan' and 'dma_request_channel' don't we end up making some confusion here?
Wouldn't it make more sense renaming 'dma_request_chan' to 'dma_request_slave_channel_reason'?
Thanks,
Andi
Re: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request
Quoted 12 lines · Andi Shyti
Hi Peter,
drivers/spi/spi-s3c64xx.c static int s3c64xx_spi_probe(struct platform_device *pdev) · line 1157
Quoted 5 lines
drivers/spi/spi-s3c64xx.c +1
-2if (!is_polling (sdd)) {/* Acquire DMA channels */ - sdd->rx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"rx" ); + sdd->rx_dma.ch =dma_request_chan (&pdev->dev,"rx" );I have a little concern here. We have two funcions '
dma_request_chan' and 'dma_request_channel' don't we end up making some confusion here?
Quoted 2 lines
Wouldn't it make more sense renaming '
dma_request_chan' to 'dma_request_slave_channel_reason'?
The dma_request_channel() should go away. It was the old API before we got the dma_slave_map for non DT (and non ACPI) platforms so we can get rid of the filter function exports from DMA drivers to clients all over the place.
I know there are users where they provide dummy filter function.
At the end the main API to request slave DMA channel should be dma_request_chan()
For non slave channels (not HW triggered) we have dma_request_chan_by_mask()
Imoh the dma_request_slave_channel_compat() should also go away with time.
Quoted 9 lines
Thanks,
Andi_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Andi Shyti
Acked-byRe: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request
Hi Peter,
Quoted 10 lines
Quoted 10 lines
drivers/spi/spi-s3c64xx.c static int s3c64xx_spi_probe(struct platform_device *pdev) · line 1157
Quoted 5 lines
drivers/spi/spi-s3c64xx.c +1
-2if (!is_polling (sdd)) {/* Acquire DMA channels */ - sdd->rx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"rx" ); + sdd->rx_dma.ch =dma_request_chan (&pdev->dev,"rx" );I have a little concern here. We have two funcions '
dma_request_chan' and 'dma_request_channel' don't we end up making some confusion here?
Quoted 7 lines
Quoted 2 lines
Wouldn't it make more sense renaming '
dma_request_chan' to 'dma_request_slave_channel_reason'?The
dma_request_channel()should go away. It was the old API before we got thedma_slave_mapfor non DT (and non ACPI) platforms so we can get rid of the filter function exports from DMA drivers to clients all over the place.
Yes, I agree... thanks!
Thanks,
Andi
Re: [PATCH 7/9] spi: s3c64xx: Use dma_request_chan() directly for channel request
In reply to Peter UjfalusiQuoted 9 lines · Peter Ujfalusi
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>--- drivers/spi/spi-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Best regards,
Krzysztof
Mark Brown
maintainerApplied "spi: s3c64xx: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: s3c64xx: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
df1b0141788527c032a9851c0589a1712d7e46b8Mon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:54 +0200
Subject: [PATCH] spi: s3c64xx: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/spi/spi-s3c64xx.c +2 -4
@@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)if (!is_polling (sdd)) {/* Acquire DMA channels */ - sdd->rx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"rx" ); + sdd->rx_dma.ch =dma_request_chan (&pdev->dev,"rx" );if (IS_ERR (sdd->rx_dma.ch)) {dev_err (&pdev->dev,"Failed to get RX DMA channel\n" ); ret =PTR_ERR (sdd->rx_dma.ch); goto err_disable_io_clk; } - sdd->tx_dma.ch =dma_request_slave_channel_reason (&pdev->dev, -"tx" ); + sdd->tx_dma.ch =dma_request_chan (&pdev->dev,"tx" );if (IS_ERR (sdd->tx_dma.ch)) {dev_err (&pdev->dev,"Failed to get TX DMA channel\n" ); ret =PTR_ERR (sdd->tx_dma.ch);
Signature · 1 line
2.20.1
PATCH 8/9 spi: tegra114: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-tegra114.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-tegra114.c +1 -2
@@ -666,8 +666,7 @@ static int tegra_spi_init_dma_param(struct tegra_spi_data *tspi,dma_addr_t dma_phys;int ret; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 8/9] spi: tegra114: Use dma_request_chan() directly for channel request
Quoted 15 lines · Peter Ujfalusi
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>--- drivers/spi/spi-tegra114.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/spi/spi-tegra114.c +0
-0
drivers/spi/spi-tegra114.c static int tegra_spi_init_dma_param(struct tegra_spi_data *tspi, · line 672
Quoted 9 lines
drivers/spi/spi-tegra114.c +1
-2@@ -666,8 +666,7 @@ static int tegra_spi_init_dma_param(struct tegra_spi_data *tspi,dma_addr_t dma_phys;int ret; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Cheers!
Jon
Signature · 1 line
nvpublic
Mark Brown
maintainerApplied "spi: tegra114: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: tegra114: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
4c973b98cdd3b413216fdb9655a420737c46a4cbMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:55 +0200
Subject: [PATCH] spi: tegra114: Use dma_request_chan() directly for channel
request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-tegra114.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-tegra114.c +1 -2
@@ -666,8 +666,7 @@ static int tegra_spi_init_dma_param(struct tegra_spi_data *tspi,dma_addr_t dma_phys;int ret; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Signature · 1 line
2.20.1
PATCH 9/9 spi: tegra20-slink: Use dma_request_chan() directly for channel request
In reply to Peter Ujfalusidma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-tegra20-slink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-tegra20-slink.c +1 -2
@@ -599,8 +599,7 @@ static int tegra_slink_init_dma_param(struct tegra_slink_data *tspi,int ret;struct dma_slave_config dma_sconfig; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Signature · 4 lines
Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Re: [PATCH 9/9] spi: tegra20-slink: Use dma_request_chan() directly for channel request
Quoted 15 lines · Peter Ujfalusi
dma_request_slave_channel_reason()is:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)Signed-off-by Peter Ujfalusi <[email protected]>--- drivers/spi/spi-tegra20-slink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/spi/spi-tegra20-slink.c +0
-0
drivers/spi/spi-tegra20-slink.c static int tegra_slink_init_dma_param(struct tegra_slink_data *tspi, · line 605
Quoted 9 lines
drivers/spi/spi-tegra20-slink.c +1
-2@@ -599,8 +599,7 @@ static int tegra_slink_init_dma_param(struct tegra_slink_data *tspi,int ret;struct dma_slave_config dma_sconfig; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Cheers!
Jon
Signature · 1 line
nvpublic
Mark Brown
maintainerApplied "spi: tegra20-slink: Use dma_request_chan() directly for channel request" to the spi tree
In reply to Peter UjfalusiThe patch
spi: tegra20-slink: Use dma_request_chan() directly for channel request
has been applied to the spi tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
912a7df474d2cb22fc99a1fcf77997f2cea7d85eMon Sep 17 00:00:00 2001
From: Peter Ujfalusi <[email protected]>
Date: Wed, 13 Nov 2019 11:42:56 +0200
Subject: [PATCH] spi: tegra20-slink: Use dma_request_chan() directly for
channel request
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)
--- drivers/spi/spi-tegra20-slink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-tegra20-slink.c +1 -2
@@ -599,8 +599,7 @@ static int tegra_slink_init_dma_param(struct tegra_slink_data *tspi,int ret;struct dma_slave_config dma_sconfig; - dma_chan =dma_request_slave_channel_reason (tspi->dev, - dma_to_memory ?"rx" :"tx" ); + dma_chan =dma_request_chan (tspi->dev, dma_to_memory ?"rx" :"tx" );if (IS_ERR (dma_chan)) { ret =PTR_ERR (dma_chan);if (ret != -EPROBE_DEFER )
Signature · 1 line
2.20.1
Quoted 6 lines · Peter Ujfalusi
Hi,
I'm going through the tree to remove
dma_request_slave_channel_reason()as it is just:
#definedma_request_slave_channel_reason(dev, name)\
dma_request_chan(dev, name)
Signature · 1 line
~Vinod