linux-m68k.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Angelo Dureghello <angelo.dureghello@timesys.com>
To: Greg Ungerer <gerg@linux-m68k.org>
Cc: "Linux/m68k" <linux-m68k@vger.kernel.org>
Subject: Re: [PATCH] m68k: stmark2: enable edma support for dspi
Date: Mon, 3 Aug 2020 20:32:58 +0200	[thread overview]
Message-ID: <CALJHbkB+U430LafZ2htODRd-czebu+0xURcN+wtJV3tEfQXZPQ@mail.gmail.com> (raw)
In-Reply-To: <20200803182803.193998-1-angelo.dureghello@timesys.com>

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

  reply	other threads:[~2020-08-03 18:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-03 18:28 [PATCH] m68k: stmark2: enable edma support for dspi Angelo Dureghello
2020-08-03 18:32 ` Angelo Dureghello [this message]
2020-08-03 23:40   ` Greg Ungerer
  -- strict thread matches above, loose matches on Subject: below --
2020-07-02 23:53 Angelo Dureghello
2020-07-07  0:04 ` Greg Ungerer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALJHbkB+U430LafZ2htODRd-czebu+0xURcN+wtJV3tEfQXZPQ@mail.gmail.com \
    --to=angelo.dureghello@timesys.com \
    --cc=gerg@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).