linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adam Ford <aford173@gmail.com>
To: linux-spi <linux-spi@vger.kernel.org>,
	NXP Linux Team <linux-imx@nxp.com>
Cc: Charles Stevens <charles.stevens@logicpd.com>
Subject: ECSPI Slave on i.M8M Mini with DMA
Date: Fri, 18 Jun 2021 11:58:43 -0500	[thread overview]
Message-ID: <CAHCN7xJ_Cidr5EiBXNi11St9vLFmm=s=K6jdHGJrvCzeQQpqyQ@mail.gmail.com> (raw)

To the NXP team,

I noticed the spi-imx driver has a function called spi_imx_can_dma()
which returns false if the SPI is configured as a slave, so the dma
cannot be used in slave mode.

Section 10.1.2.7 "DMA" of the The 8MM Ref manual, Rev 3, shows there
are a few conditions that can trigger the DMA.  Of them, two are
RXFIFO data request and RXFIFO full.  The block diagram in that
section shows it can retrieve data with DMA

However, in section 10.1.4 "Applications" of the same document, it
shows the optional DMA configurations are only in the SPI master
configuration and not the SPI slave configuration.

The ECSPIx_DMAREG documentation (section 10.1.5.6) states "The ECSPI
sends out DMA requests when the appropriate FIFO conditions are
matched." Unfortunately it doesn't explicitly state whether that's
only for master or available in either master or slave mode.

Can someone tell me if DMA is available when SPI is configured as a slave?

thank you,

adam

             reply	other threads:[~2021-06-18 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-18 16:58 Adam Ford [this message]
2021-06-30  9:34 ` ECSPI Slave on i.M8M Mini with DMA Peng Fan
2021-07-05  7:16   ` Clark Wang

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='CAHCN7xJ_Cidr5EiBXNi11St9vLFmm=s=K6jdHGJrvCzeQQpqyQ@mail.gmail.com' \
    --to=aford173@gmail.com \
    --cc=charles.stevens@logicpd.com \
    --cc=linux-imx@nxp.com \
    --cc=linux-spi@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).