linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Remove mach/atmel-mci.h
@ 2014-10-17  7:52 Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 1/3] mmc: atmel-mci: move mache header to platform_data Alexandre Belloni
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-10-17  7:52 UTC (permalink / raw)
  To: linux-arm-kernel

This patch series removes the uses of mach/atmel-mci.h and the files themselves.
The final goal is to be able to switch AT91 to multiplatform.

The first patch introduces a new platform_data file and uses it in the driver.
The two following patches remove the uses of mach/atmel-mci.h and the header
itself from avR32 and ARM/at91.

Alexandre Belloni (3):
  mmc: atmel-mci: move mache header to platform_data
  ARM: at91: remove mach/atmel-mci.h
  avr32: remove mach/atmel-mci.h

 arch/arm/mach-at91/at91sam9g45_devices.c        |  2 +-
 arch/arm/mach-at91/include/mach/atmel-mci.h     | 17 -----------------
 arch/avr32/mach-at32ap/at32ap700x.c             |  2 +-
 arch/avr32/mach-at32ap/include/mach/atmel-mci.h | 17 -----------------
 drivers/mmc/host/atmel-mci.c                    |  2 +-
 include/linux/platform_data/mmc-atmel-mci.h     | 22 ++++++++++++++++++++++
 6 files changed, 25 insertions(+), 37 deletions(-)
 delete mode 100644 arch/arm/mach-at91/include/mach/atmel-mci.h
 delete mode 100644 arch/avr32/mach-at32ap/include/mach/atmel-mci.h
 create mode 100644 include/linux/platform_data/mmc-atmel-mci.h

-- 
1.9.1

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

* [PATCH 1/3] mmc: atmel-mci: move mache header to platform_data
  2014-10-17  7:52 [PATCH 0/3] Remove mach/atmel-mci.h Alexandre Belloni
@ 2014-10-17  7:52 ` Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 3/3] avr32: " Alexandre Belloni
  2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-10-17  7:52 UTC (permalink / raw)
  To: linux-arm-kernel

Move the mach header that can come either from arm/mach-at91 or avr32 to
platform_data to be able to switch the AT91 platforms to multiplatform.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 drivers/mmc/host/atmel-mci.c                |  2 +-
 include/linux/platform_data/mmc-atmel-mci.h | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/platform_data/mmc-atmel-mci.h

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index bb585d940901..b1231835b031 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -29,11 +29,11 @@
 #include <linux/stat.h>
 #include <linux/types.h>
 #include <linux/platform_data/atmel.h>
+#include <linux/platform_data/mmc-atmel-mci.h>
 
 #include <linux/mmc/host.h>
 #include <linux/mmc/sdio.h>
 
-#include <mach/atmel-mci.h>
 #include <linux/atmel-mci.h>
 #include <linux/atmel_pdc.h>
 
diff --git a/include/linux/platform_data/mmc-atmel-mci.h b/include/linux/platform_data/mmc-atmel-mci.h
new file mode 100644
index 000000000000..ebe7ae4f72e4
--- /dev/null
+++ b/include/linux/platform_data/mmc-atmel-mci.h
@@ -0,0 +1,22 @@
+#ifndef __MMC_ATMEL_MCI_H
+#define __MMC_ATMEL_MCI_H
+
+#include <linux/platform_data/dma-atmel.h>
+#include <linux/dw_dmac.h>
+
+/**
+ * struct mci_dma_data - DMA data for MCI interface
+ */
+struct mci_dma_data {
+#ifdef CONFIG_ARM
+	struct at_dma_slave     sdata;
+#else
+	struct dw_dma_slave     sdata;
+#endif
+};
+
+/* accessor macros */
+#define	slave_data_ptr(s)	(&(s)->sdata)
+#define find_slave_dev(s)	((s)->sdata.dma_dev)
+
+#endif /* __MMC_ATMEL_MCI_H */
-- 
1.9.1

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

* [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h
  2014-10-17  7:52 [PATCH 0/3] Remove mach/atmel-mci.h Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 1/3] mmc: atmel-mci: move mache header to platform_data Alexandre Belloni
@ 2014-10-17  7:52 ` Alexandre Belloni
  2014-10-17  8:04   ` Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 3/3] avr32: " Alexandre Belloni
  2 siblings, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2014-10-17  7:52 UTC (permalink / raw)
  To: linux-arm-kernel

Use the generic platform_data header file instead of mach/atmel-mci.h

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/arm/mach-at91/at91sam9g45_devices.c    |  2 +-
 arch/arm/mach-at91/include/mach/atmel-mci.h | 17 -----------------
 2 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 arch/arm/mach-at91/include/mach/atmel-mci.h

diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c
index 21ab782cc8e9..797433a5881a 100644
--- a/arch/arm/mach-at91/at91sam9g45_devices.c
+++ b/arch/arm/mach-at91/at91sam9g45_devices.c
@@ -17,8 +17,8 @@
 #include <linux/clk.h>
 #include <linux/platform_device.h>
 #include <linux/i2c-gpio.h>
-#include <linux/atmel-mci.h>
 #include <linux/platform_data/crypto-atmel.h>
+#include <linux/platform_data/mmc-atmel-mci.h>
 
 #include <linux/platform_data/at91_adc.h>
 
diff --git a/arch/arm/mach-at91/include/mach/atmel-mci.h b/arch/arm/mach-at91/include/mach/atmel-mci.h
deleted file mode 100644
index 3069e4135573..000000000000
--- a/arch/arm/mach-at91/include/mach/atmel-mci.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef __MACH_ATMEL_MCI_H
-#define __MACH_ATMEL_MCI_H
-
-#include <linux/platform_data/dma-atmel.h>
-
-/**
- * struct mci_dma_data - DMA data for MCI interface
- */
-struct mci_dma_data {
-	struct at_dma_slave	sdata;
-};
-
-/* accessor macros */
-#define	slave_data_ptr(s)	(&(s)->sdata)
-#define find_slave_dev(s)	((s)->sdata.dma_dev)
-
-#endif /* __MACH_ATMEL_MCI_H */
-- 
1.9.1

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

* [PATCH 3/3] avr32: remove mach/atmel-mci.h
  2014-10-17  7:52 [PATCH 0/3] Remove mach/atmel-mci.h Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 1/3] mmc: atmel-mci: move mache header to platform_data Alexandre Belloni
  2014-10-17  7:52 ` [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h Alexandre Belloni
@ 2014-10-17  7:52 ` Alexandre Belloni
  2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-10-17  7:52 UTC (permalink / raw)
  To: linux-arm-kernel

Use the generic platform_data header file instead of mach/atmel-mci.h

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 arch/avr32/mach-at32ap/at32ap700x.c             |  2 +-
 arch/avr32/mach-at32ap/include/mach/atmel-mci.h | 17 -----------------
 2 files changed, 1 insertion(+), 18 deletions(-)
 delete mode 100644 arch/avr32/mach-at32ap/include/mach/atmel-mci.h

diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index db85b5ec3351..f8deca560e4d 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -17,7 +17,7 @@
 #include <linux/spi/spi.h>
 #include <linux/usb/atmel_usba_udc.h>
 
-#include <mach/atmel-mci.h>
+#include <linux/platform_data/mmc-atmel-mci.h>
 #include <linux/atmel-mci.h>
 
 #include <asm/io.h>
diff --git a/arch/avr32/mach-at32ap/include/mach/atmel-mci.h b/arch/avr32/mach-at32ap/include/mach/atmel-mci.h
deleted file mode 100644
index 4bba58561d5c..000000000000
--- a/arch/avr32/mach-at32ap/include/mach/atmel-mci.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef __MACH_ATMEL_MCI_H
-#define __MACH_ATMEL_MCI_H
-
-#include <linux/dw_dmac.h>
-
-/**
- * struct mci_dma_data - DMA data for MCI interface
- */
-struct mci_dma_data {
-	struct dw_dma_slave	sdata;
-};
-
-/* accessor macros */
-#define	slave_data_ptr(s)	(&(s)->sdata)
-#define find_slave_dev(s)	((s)->sdata.dma_dev)
-
-#endif /* __MACH_ATMEL_MCI_H */
-- 
1.9.1

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

* [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h
  2014-10-17  7:52 ` [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h Alexandre Belloni
@ 2014-10-17  8:04   ` Alexandre Belloni
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2014-10-17  8:04 UTC (permalink / raw)
  To: linux-arm-kernel

On 17/10/2014 at 09:52:45 +0200, Alexandre Belloni wrote :
> Use the generic platform_data header file instead of mach/atmel-mci.h
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> ---
>  arch/arm/mach-at91/at91sam9g45_devices.c    |  2 +-
>  arch/arm/mach-at91/include/mach/atmel-mci.h | 17 -----------------
>  2 files changed, 1 insertion(+), 18 deletions(-)
>  delete mode 100644 arch/arm/mach-at91/include/mach/atmel-mci.h
> 
> diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c
> index 21ab782cc8e9..797433a5881a 100644
> --- a/arch/arm/mach-at91/at91sam9g45_devices.c
> +++ b/arch/arm/mach-at91/at91sam9g45_devices.c
> @@ -17,8 +17,8 @@
>  #include <linux/clk.h>
>  #include <linux/platform_device.h>
>  #include <linux/i2c-gpio.h>
> -#include <linux/atmel-mci.h>

I sent the wrong series, I will respin

>  #include <linux/platform_data/crypto-atmel.h>
> +#include <linux/platform_data/mmc-atmel-mci.h>
>  

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2014-10-17  8:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17  7:52 [PATCH 0/3] Remove mach/atmel-mci.h Alexandre Belloni
2014-10-17  7:52 ` [PATCH 1/3] mmc: atmel-mci: move mache header to platform_data Alexandre Belloni
2014-10-17  7:52 ` [PATCH 2/3] ARM: at91: remove mach/atmel-mci.h Alexandre Belloni
2014-10-17  8:04   ` Alexandre Belloni
2014-10-17  7:52 ` [PATCH 3/3] avr32: " Alexandre Belloni

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).