linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI
@ 2016-09-28 10:35 Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI Peter Ujfalusi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2016-09-28 10:35 UTC (permalink / raw)
  To: nsekhar, khilman; +Cc: linux-arm-kernel, linux-kernel

Hi,

The drivers for davinci MMC and SPI have been converted to the new DMAengine API
and no longer rely on the IORESOURCE_DMA.
This is the case for at least one release cycle so now we can remove the
IORESOURCE_DMA for these devices.

Regards,
Peter
---
Peter Ujfalusi (4):
  ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI
  ARM: davinci: devices: Remove DMA resources for MMC
  ARM: davinci: dm355: Remove DMA resources for SPI
  ARM: davinci: dm365: Remove DMA resources for SPI

 arch/arm/mach-davinci/devices-da8xx.c | 29 -----------------------------
 arch/arm/mach-davinci/devices.c       |  3 ---
 arch/arm/mach-davinci/dm355.c         |  8 --------
 arch/arm/mach-davinci/dm365.c         |  8 --------
 4 files changed, 48 deletions(-)

--
2.10.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI
  2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
@ 2016-09-28 10:35 ` Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 2/4] ARM: davinci: devices: Remove DMA resources for MMC Peter Ujfalusi
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2016-09-28 10:35 UTC (permalink / raw)
  To: nsekhar, khilman; +Cc: linux-arm-kernel, linux-kernel

The drivers are now converted to not use the DMA resource.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/devices-da8xx.c | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index add3771d38f6..dbdfe02b4174 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -57,15 +57,6 @@
 #define DA8XX_EMAC_RAM_OFFSET		0x0000
 #define DA8XX_EMAC_CTRL_RAM_SIZE	SZ_8K
 
-#define DA8XX_DMA_SPI0_RX	EDMA_CTLR_CHAN(0, 14)
-#define DA8XX_DMA_SPI0_TX	EDMA_CTLR_CHAN(0, 15)
-#define DA8XX_DMA_MMCSD0_RX	EDMA_CTLR_CHAN(0, 16)
-#define DA8XX_DMA_MMCSD0_TX	EDMA_CTLR_CHAN(0, 17)
-#define DA8XX_DMA_SPI1_RX	EDMA_CTLR_CHAN(0, 18)
-#define DA8XX_DMA_SPI1_TX	EDMA_CTLR_CHAN(0, 19)
-#define DA850_DMA_MMCSD1_RX	EDMA_CTLR_CHAN(1, 28)
-#define DA850_DMA_MMCSD1_TX	EDMA_CTLR_CHAN(1, 29)
-
 void __iomem *da8xx_syscfg0_base;
 void __iomem *da8xx_syscfg1_base;
 
@@ -964,16 +955,6 @@ static struct resource da8xx_spi0_resources[] = {
 		.end	= IRQ_DA8XX_SPINT0,
 		.flags	= IORESOURCE_IRQ,
 	},
-	[2] = {
-		.start	= DA8XX_DMA_SPI0_RX,
-		.end	= DA8XX_DMA_SPI0_RX,
-		.flags	= IORESOURCE_DMA,
-	},
-	[3] = {
-		.start	= DA8XX_DMA_SPI0_TX,
-		.end	= DA8XX_DMA_SPI0_TX,
-		.flags	= IORESOURCE_DMA,
-	},
 };
 
 static struct resource da8xx_spi1_resources[] = {
@@ -987,16 +968,6 @@ static struct resource da8xx_spi1_resources[] = {
 		.end	= IRQ_DA8XX_SPINT1,
 		.flags	= IORESOURCE_IRQ,
 	},
-	[2] = {
-		.start	= DA8XX_DMA_SPI1_RX,
-		.end	= DA8XX_DMA_SPI1_RX,
-		.flags	= IORESOURCE_DMA,
-	},
-	[3] = {
-		.start	= DA8XX_DMA_SPI1_TX,
-		.end	= DA8XX_DMA_SPI1_TX,
-		.flags	= IORESOURCE_DMA,
-	},
 };
 
 static struct davinci_spi_platform_data da8xx_spi_pdata[] = {
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ARM: davinci: devices: Remove DMA resources for MMC
  2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI Peter Ujfalusi
@ 2016-09-28 10:35 ` Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 3/4] ARM: davinci: dm355: Remove DMA resources for SPI Peter Ujfalusi
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2016-09-28 10:35 UTC (permalink / raw)
  To: nsekhar, khilman; +Cc: linux-arm-kernel, linux-kernel

The driver is converted to not use the DMA resource.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/devices.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c
index 67d26c5bda0b..3ae70f2909b0 100644
--- a/arch/arm/mach-davinci/devices.c
+++ b/arch/arm/mach-davinci/devices.c
@@ -36,9 +36,6 @@
 #define DM365_MMCSD0_BASE	     0x01D11000
 #define DM365_MMCSD1_BASE	     0x01D00000
 
-#define DAVINCI_DMA_MMCRXEVT	26
-#define DAVINCI_DMA_MMCTXEVT	27
-
 void __iomem  *davinci_sysmod_base;
 
 void davinci_map_sysmod(void)
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ARM: davinci: dm355: Remove DMA resources for SPI
  2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 2/4] ARM: davinci: devices: Remove DMA resources for MMC Peter Ujfalusi
@ 2016-09-28 10:35 ` Peter Ujfalusi
  2016-09-28 10:35 ` [PATCH 4/4] ARM: davinci: dm365: " Peter Ujfalusi
  2016-10-01 17:38 ` [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Sekhar Nori
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2016-09-28 10:35 UTC (permalink / raw)
  To: nsekhar, khilman; +Cc: linux-arm-kernel, linux-kernel

The driver is converted to not use the DMA resource.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/dm355.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c
index d33322ddedab..bd50367f654e 100644
--- a/arch/arm/mach-davinci/dm355.c
+++ b/arch/arm/mach-davinci/dm355.c
@@ -397,14 +397,6 @@ static struct resource dm355_spi0_resources[] = {
 		.start = IRQ_DM355_SPINT0_0,
 		.flags = IORESOURCE_IRQ,
 	},
-	{
-		.start = 17,
-		.flags = IORESOURCE_DMA,
-	},
-	{
-		.start = 16,
-		.flags = IORESOURCE_DMA,
-	},
 };
 
 static struct davinci_spi_platform_data dm355_spi0_pdata = {
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ARM: davinci: dm365: Remove DMA resources for SPI
  2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
                   ` (2 preceding siblings ...)
  2016-09-28 10:35 ` [PATCH 3/4] ARM: davinci: dm355: Remove DMA resources for SPI Peter Ujfalusi
@ 2016-09-28 10:35 ` Peter Ujfalusi
  2016-10-01 17:38 ` [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Sekhar Nori
  4 siblings, 0 replies; 6+ messages in thread
From: Peter Ujfalusi @ 2016-09-28 10:35 UTC (permalink / raw)
  To: nsekhar, khilman; +Cc: linux-arm-kernel, linux-kernel

The driver is converted to not use the DMA resource.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/mach-davinci/dm365.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c
index ef3add999263..8be04ec95adf 100644
--- a/arch/arm/mach-davinci/dm365.c
+++ b/arch/arm/mach-davinci/dm365.c
@@ -660,14 +660,6 @@ static struct resource dm365_spi0_resources[] = {
 		.start = IRQ_DM365_SPIINT0_0,
 		.flags = IORESOURCE_IRQ,
 	},
-	{
-		.start = 17,
-		.flags = IORESOURCE_DMA,
-	},
-	{
-		.start = 16,
-		.flags = IORESOURCE_DMA,
-	},
 };
 
 static struct platform_device dm365_spi0_device = {
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI
  2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
                   ` (3 preceding siblings ...)
  2016-09-28 10:35 ` [PATCH 4/4] ARM: davinci: dm365: " Peter Ujfalusi
@ 2016-10-01 17:38 ` Sekhar Nori
  4 siblings, 0 replies; 6+ messages in thread
From: Sekhar Nori @ 2016-10-01 17:38 UTC (permalink / raw)
  To: Peter Ujfalusi, khilman; +Cc: linux-arm-kernel, linux-kernel

On Wednesday 28 September 2016 04:05 PM, Peter Ujfalusi wrote:
> Hi,
> 
> The drivers for davinci MMC and SPI have been converted to the new DMAengine API
> and no longer rely on the IORESOURCE_DMA.
> This is the case for at least one release cycle so now we can remove the
> IORESOURCE_DMA for these devices.

Hi Peter, applied to v4.10/cleanup branch of my tree. Thanks!

~Sekhar

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-01 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 10:35 [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi
2016-09-28 10:35 ` [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI Peter Ujfalusi
2016-09-28 10:35 ` [PATCH 2/4] ARM: davinci: devices: Remove DMA resources for MMC Peter Ujfalusi
2016-09-28 10:35 ` [PATCH 3/4] ARM: davinci: dm355: Remove DMA resources for SPI Peter Ujfalusi
2016-09-28 10:35 ` [PATCH 4/4] ARM: davinci: dm365: " Peter Ujfalusi
2016-10-01 17:38 ` [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Sekhar Nori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).