spi: spi-pxa2xx: Remove unused legacy PXA DMA API channel numbers
Subsystems (3)
PATCH 1/2 spi: spi-pxa2xx: Remove unused legacy PXA DMA API channel numbers
These became unused by the commit 6356437e65c2
("spi: spi-pxa2xx: remove legacy PXA DMA bits").
--- drivers/spi/spi-pxa2xx.c | 2 -- drivers/spi/spi-pxa2xx.h | 2 -- 2 files changed, 4 deletions(-)
drivers/spi/spi-pxa2xx.c +0 -2
@@ -1475,8 +1475,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) }/* Setup DMA if requested */ - drv_data->tx_channel =-1 ; - drv_data->rx_channel =-1 ;if (platform_info->enable_dma) { status =pxa2xx_spi_dma_setup (drv_data);if (status) {
drivers/spi/spi-pxa2xx.h +0 -2
@@ -37,8 +37,6 @@ struct driver_data {struct pxa2xx_spi_master *master_info;/* PXA private DMA setup stuff */ -int rx_channel; -int tx_channel;u32 *null_dma_buf;/* SSP register addresses */
Signature · 6 lines
2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 2/2 spi: spi-pxa2xx: Remove unused legacy null dma buffer and allocation for it
In reply to a message not in the archiveRemove null_dma_buf variable and extra allocation for it. It is not needed since commit 6356437e65c2 ("spi: spi-pxa2xx: remove legacy PXA DMA bits").
--- drivers/spi/spi-pxa2xx.c | 4 +--- drivers/spi/spi-pxa2xx.h | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-)
drivers/spi/spi-pxa2xx.c +1 -3
@@ -1413,8 +1413,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)return -ENODEV ; } -/* Allocate master with space for drv_data and null dma buffer */ - master =spi_alloc_master (dev,sizeof (struct driver_data ) +16 ); + master =spi_alloc_master (dev,sizeof (struct driver_data ));if (!master) {dev_err (&pdev->dev,"cannot alloc spi_master\n" );pxa_ssp_free (ssp);
@@ -1441,7 +1440,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) master->auto_runtime_pm = true; drv_data->ssp_type = ssp->type; - drv_data->null_dma_buf = (u32 *)PTR_ALIGN (&drv_data[1 ],DMA_ALIGNMENT ); drv_data->ioaddr = ssp->mmio_base; drv_data->ssdr_physical = ssp->phys_base +SSDR ;
drivers/spi/spi-pxa2xx.h +0 -3
@@ -36,9 +36,6 @@ struct driver_data {/* PXA hookup */ struct pxa2xx_spi_master *master_info; -/* PXA private DMA setup stuff */ -u32 *null_dma_buf; -/* SSP register addresses */ void __iomem *ioaddr;u32 ssdr_physical;
Signature · 6 lines
2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Jarkko Nikula
These became unused by the commit
6356437e65c2
("spi: spi-pxa2xx: remove legacy PXA DMA bits").
This doesn't apply against current code, please check and resend.
Applied "spi: spi-pxa2xx: Remove unused legacy PXA DMA API channel numbers" to the spi tree
In reply to a message not in the archiveThe patch
spi: spi-pxa2xx: Remove unused legacy PXA DMA API channel numbers
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
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
f47da2400e8828eda2ed4208fb312031f8b7d2aeMon Sep 17 00:00:00 2001
From: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Mon, 3 Aug 2015 13:41:11 +0300
Subject: [PATCH] spi: spi-pxa2xx: Remove unused legacy PXA DMA API channel
numbers
These became unused by the commit 6356437e65c2
("spi: spi-pxa2xx: remove legacy PXA DMA bits").
--- drivers/spi/spi-pxa2xx.c | 2 -- drivers/spi/spi-pxa2xx.h | 2 -- 2 files changed, 4 deletions(-)
drivers/spi/spi-pxa2xx.c +0 -2
@@ -1475,8 +1475,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) }/* Setup DMA if requested */ - drv_data->tx_channel =-1 ; - drv_data->rx_channel =-1 ;if (platform_info->enable_dma) { status =pxa2xx_spi_dma_setup (drv_data);if (status) {
drivers/spi/spi-pxa2xx.h +0 -2
@@ -37,8 +37,6 @@ struct driver_data {struct pxa2xx_spi_master *master_info;/* PXA private DMA setup stuff */ -int rx_channel; -int tx_channel;u32 *null_dma_buf;/* SSP register addresses */
Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Mark Brown
Quoted 2 lines · Jarkko Nikula
These became unused by the commit
6356437e65c2
("spi: spi-pxa2xx: remove legacy PXA DMA bits").This doesn't apply against current code, please check and resend.
Hmm... I'm confused, both patches were done on top of commit 34cadd9c1bcb ("spi: pxa2xx: Add support for Intel Sunrisepoint") in spi/topic/pxa2xx and I see this patch 1/2 applied there and merged into for-next now. Anyway, patch 2/2 should still apply fine.
Signature · 5 lines
Jarkko -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Jarkko Nikula
Quoted 1 line · Mark Brown
This doesn't apply against current code, please check and resend.
Hmm... I'm confused, both patches were done on top of commit
34cadd9c1bcb("spi: pxa2xx: Add support for Intel Sunrisepoint") in spi/topic/pxa2xx and I see this patch 1/2 applied there and merged into for-next now. Anyway, patch 2/2 should still apply fine.
It didn't apply when I tried it yesterday.
Applied "spi: spi-pxa2xx: Remove unused legacy null dma buffer and allocation for it" to the spi tree
In reply to a message not in the archiveThe patch
spi: spi-pxa2xx: Remove unused legacy null dma buffer and allocation for it
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
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
757fe8d514a9bab55156dfb2c4a03e56ba96a028Mon Sep 17 00:00:00 2001
From: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/[email protected]>
Date: Wed, 5 Aug 2015 10:04:05 +0300
Subject: [PATCH] spi: spi-pxa2xx: Remove unused legacy null dma buffer and
allocation for it
Remove null_dma_buf variable and extra allocation for it. It is not needed since commit 6356437e65c2 ("spi: spi-pxa2xx: remove legacy PXA DMA bits").
--- drivers/spi/spi-pxa2xx.c | 4 +--- drivers/spi/spi-pxa2xx.h | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-)
drivers/spi/spi-pxa2xx.c +1 -3
@@ -1414,8 +1414,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev)return -ENODEV ; } -/* Allocate master with space for drv_data and null dma buffer */ - master =spi_alloc_master (dev,sizeof (struct driver_data ) +16 ); + master =spi_alloc_master (dev,sizeof (struct driver_data ));if (!master) {dev_err (&pdev->dev,"cannot alloc spi_master\n" );pxa_ssp_free (ssp);
@@ -1442,7 +1441,6 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) master->auto_runtime_pm = true; drv_data->ssp_type = ssp->type; - drv_data->null_dma_buf = (u32 *)PTR_ALIGN (&drv_data[1 ],DMA_ALIGNMENT ); drv_data->ioaddr = ssp->mmio_base; drv_data->ssdr_physical = ssp->phys_base +SSDR ;
drivers/spi/spi-pxa2xx.h +0 -3
@@ -36,9 +36,6 @@ struct driver_data {/* PXA hookup */ struct pxa2xx_spi_master *master_info; -/* PXA private DMA setup stuff */ -u32 *null_dma_buf; -/* SSP register addresses */ void __iomem *ioaddr;u32 ssdr_physical;
Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html