Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1492523 > unrolled thread

[PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI

Started byPeter Ujfalusi <peter.ujfalusi@ti.com>
First post2016-09-28 12:40 +0200
Last post2016-10-01 19:40 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-09-28 12:40 +0200
    [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-09-28 12:40 +0200
    Re: [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI Sekhar Nori <nsekhar@ti.com> - 2016-10-01 19:40 +0200

#1492523 — [PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2016-09-28 12:40 +0200
Subject[PATCH 0/4] ARM: davinci: Remove DMA resources for MMC/SPI
Message-ID<smkrn-5vk-9@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1492524 — [PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI

FromPeter Ujfalusi <peter.ujfalusi@ti.com>
Date2016-09-28 12:40 +0200
Subject[PATCH 1/4] ARM: davinci: devices-da8xx: Remove DMA resources for MMC and SPI
Message-ID<smkro-5vk-23@gated-at.bofh.it>
In reply to#1492523
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

[toc] | [prev] | [next] | [standalone]


#1494444

FromSekhar Nori <nsekhar@ti.com>
Date2016-10-01 19:40 +0200
Message-ID<snwqu-3fm-1@gated-at.bofh.it>
In reply to#1492523
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web