[PATCH v2] spi: imx: keep dma request disabled before dma transfer setup

Carlos Song carlos.song at nxp.com
Tue Oct 28 02:42:19 PDT 2025



> -----Original Message-----
> From: Fabio Estevam <festevam at gmail.com>
> Sent: Monday, October 27, 2025 8:13 PM
> To: Carlos Song <carlos.song at nxp.com>
> Cc: Frank Li <frank.li at nxp.com>; broonie at kernel.org; shawnguo at kernel.org;
> s.hauer at pengutronix.de; kernel at pengutronix.de; linux-spi at vger.kernel.org;
> imx at lists.linux.dev; linux-arm-kernel at lists.infradead.org;
> linux-kernel at vger.kernel.org
> Subject: [EXT] Re: [PATCH v2] spi: imx: keep dma request disabled before dma
> transfer setup
> 
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report this
> email' button
> 
> 
> On Mon, Oct 27, 2025 at 8:04 AM <carlos.song at nxp.com> wrote:
> >
> > From: Robin Gong <yibin.gong at nxp.com>
> >
> > Due to a hardware limitation on SDMA event enable (ENBLn), the DMA
> > request must remain disabled until the DMA transfer setup is complete.
> >
> > Refer SDMA 2.6.28 Channel Enable RAM (SDMAARMx_CHNENBLn) section:
> >
> > "
> > It is thus essential for the Arm platform to program them before any
> > DMA request is triggered to the SDMA, otherwise an unpredictable
> > combination of channels may be started.
> > "
> >
> > SDMA hardware configuration is postponed to transfer phase, so
> > enabling the DMA request too early may cause unpredictable channel
> activation.
> > Then keep dma request disabled before dma transfer setup.
> >
> > Signed-off-by: Carlos Song <carlos.song at nxp.com>
> > Signed-off-by: Robin Gong <yibin.gong at nxp.com>
> 
> Should this contain a Fixes tag?

Thank you, I will add this at next version patch.


More information about the linux-arm-kernel mailing list