Linux-m68k Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] m68k: stmark2: enable edma support for dspi
@ 2020-07-02 23:53 Angelo Dureghello
  2020-07-07  0:04 ` Greg Ungerer
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Dureghello @ 2020-07-02 23:53 UTC (permalink / raw)
  To: gerg; +Cc: linux-m68k, Angelo Dureghello

Enable edma support for stmark2.

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
---
 arch/m68k/coldfire/stmark2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
index a8d2b3d172f9..8b5af9c83244 100644
--- a/arch/m68k/coldfire/stmark2.c
+++ b/arch/m68k/coldfire/stmark2.c
@@ -13,6 +13,7 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/spi-fsl-dspi.h>
 #include <linux/spi/flash.h>
+#include <linux/dma-mapping.h>
 #include <asm/mcfsim.h>
 
 /*
@@ -78,6 +79,8 @@ static struct resource dspi_spi0_resource[] = {
 	},
 };
 
+static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
+
 /* SPI controller, id = bus number */
 static struct platform_device dspi_spi0_device = {
 	.name = "fsl-dspi",
@@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
 	.resource = dspi_spi0_resource,
 	.dev = {
 		.platform_data = &dspi_spi0_info,
+		.dma_mask = &stmark2_dspi_mask,
+		.coherent_dma_mask = DMA_BIT_MASK(32),
 	},
 };
 
-- 
2.26.2


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

* Re: [PATCH] m68k: stmark2: enable edma support for dspi
  2020-07-02 23:53 [PATCH] m68k: stmark2: enable edma support for dspi Angelo Dureghello
@ 2020-07-07  0:04 ` Greg Ungerer
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Ungerer @ 2020-07-07  0:04 UTC (permalink / raw)
  To: Angelo Dureghello; +Cc: linux-m68k

Hi Angelo,

On 3/7/20 9:53 am, Angelo Dureghello wrote:
> Enable edma support for stmark2.
> 
> Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>

Thanks. Pushed into the m68knommu git tree, for-next branch.

Regards
Greg


>   arch/m68k/coldfire/stmark2.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
> index a8d2b3d172f9..8b5af9c83244 100644
> --- a/arch/m68k/coldfire/stmark2.c
> +++ b/arch/m68k/coldfire/stmark2.c
> @@ -13,6 +13,7 @@
>   #include <linux/spi/spi.h>
>   #include <linux/spi/spi-fsl-dspi.h>
>   #include <linux/spi/flash.h>
> +#include <linux/dma-mapping.h>
>   #include <asm/mcfsim.h>
>   
>   /*
> @@ -78,6 +79,8 @@ static struct resource dspi_spi0_resource[] = {
>   	},
>   };
>   
> +static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
> +
>   /* SPI controller, id = bus number */
>   static struct platform_device dspi_spi0_device = {
>   	.name = "fsl-dspi",
> @@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
>   	.resource = dspi_spi0_resource,
>   	.dev = {
>   		.platform_data = &dspi_spi0_info,
> +		.dma_mask = &stmark2_dspi_mask,
> +		.coherent_dma_mask = DMA_BIT_MASK(32),
>   	},
>   };
>   
> 

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

* Re: [PATCH] m68k: stmark2: enable edma support for dspi
  2020-08-03 18:28 Angelo Dureghello
@ 2020-08-03 18:32 ` Angelo Dureghello
  0 siblings, 0 replies; 4+ messages in thread
From: Angelo Dureghello @ 2020-08-03 18:32 UTC (permalink / raw)
  To: Greg Ungerer; +Cc: Linux/m68k

Hi Greg,

just realized i double-posted this patch.
You already added it to for-next, so please discard this patch.

Thanks,
angelo


On Mon, Aug 3, 2020 at 8:19 PM Angelo Dureghello
<angelo.dureghello@timesys.com> wrote:
>
> Enable dspi edma support for stmark2.
>
> Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
> ---
>  arch/m68k/coldfire/stmark2.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
> index a8d2b3d172f9..8b5af9c83244 100644
> --- a/arch/m68k/coldfire/stmark2.c
> +++ b/arch/m68k/coldfire/stmark2.c
> @@ -13,6 +13,7 @@
>  #include <linux/spi/spi.h>
>  #include <linux/spi/spi-fsl-dspi.h>
>  #include <linux/spi/flash.h>
> +#include <linux/dma-mapping.h>
>  #include <asm/mcfsim.h>
>
>  /*
> @@ -78,6 +79,8 @@ static struct resource dspi_spi0_resource[] = {
>         },
>  };
>
> +static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
> +
>  /* SPI controller, id = bus number */
>  static struct platform_device dspi_spi0_device = {
>         .name = "fsl-dspi",
> @@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
>         .resource = dspi_spi0_resource,
>         .dev = {
>                 .platform_data = &dspi_spi0_info,
> +               .dma_mask = &stmark2_dspi_mask,
> +               .coherent_dma_mask = DMA_BIT_MASK(32),
>         },
>  };
>
> --
> 2.28.0
>


-- 
Angelo Dureghello
Timesys
e. angelo.dureghello@timesys.com

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

* [PATCH] m68k: stmark2: enable edma support for dspi
@ 2020-08-03 18:28 Angelo Dureghello
  2020-08-03 18:32 ` Angelo Dureghello
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Dureghello @ 2020-08-03 18:28 UTC (permalink / raw)
  To: gerg; +Cc: linux-m68k, Angelo Dureghello

Enable dspi edma support for stmark2.

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
---
 arch/m68k/coldfire/stmark2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
index a8d2b3d172f9..8b5af9c83244 100644
--- a/arch/m68k/coldfire/stmark2.c
+++ b/arch/m68k/coldfire/stmark2.c
@@ -13,6 +13,7 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/spi-fsl-dspi.h>
 #include <linux/spi/flash.h>
+#include <linux/dma-mapping.h>
 #include <asm/mcfsim.h>
 
 /*
@@ -78,6 +79,8 @@ static struct resource dspi_spi0_resource[] = {
 	},
 };
 
+static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
+
 /* SPI controller, id = bus number */
 static struct platform_device dspi_spi0_device = {
 	.name = "fsl-dspi",
@@ -86,6 +89,8 @@ static struct platform_device dspi_spi0_device = {
 	.resource = dspi_spi0_resource,
 	.dev = {
 		.platform_data = &dspi_spi0_info,
+		.dma_mask = &stmark2_dspi_mask,
+		.coherent_dma_mask = DMA_BIT_MASK(32),
 	},
 };
 
-- 
2.28.0


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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 23:53 [PATCH] m68k: stmark2: enable edma support for dspi Angelo Dureghello
2020-07-07  0:04 ` Greg Ungerer
2020-08-03 18:28 Angelo Dureghello
2020-08-03 18:32 ` Angelo Dureghello

Linux-m68k Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-m68k/0 linux-m68k/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-m68k linux-m68k/ https://lore.kernel.org/linux-m68k \
		linux-m68k@vger.kernel.org linux-m68k@lists.linux-m68k.org
	public-inbox-index linux-m68k

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-m68k


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git