[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130418164642.GM13687@opensource.wolfsonmicro.com>
Date: Thu, 18 Apr 2013 17:46:42 +0100
From: Mark Brown <broonie@...nel.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Kukjin Kim <kgene.kim@...sung.com>,
linux-samsung-soc@...r.kernel.org,
spi-devel-general@...ts.sourceforge.net,
Grant Likely <grant.likely@...retlab.ca>,
Padma Venkat <padma.kvr@...il.com>
Subject: Re: [PATCH 29/30] spi: s3c64xx: move to generic dmaengine API
On Wed, Apr 17, 2013 at 10:05:35PM +0200, Arnd Bergmann wrote:
> On Thursday 11 April 2013, Arnd Bergmann wrote:
> > + use_dma = 0;
> > + if (sdd->rx_dma.ch && sdd->tx_dma.ch &&
> > + (xfer->len > ((FIFO_LVL_MASK(sdd) >> 1) + 1)))
> > use_dma = 1;
> Can you try just reverting this hunk? It's actually not required and
> comes from an earlier version of the patch. I assumed it was harmless,
> but it's the only think I see that should actually make a difference
> in my patch for the case of !CONFIG_SAMSUNG_DMADEV.
That's not it, the checks are now needed - otherwise we get a null
pointer dereference in prepare_dma() instead. What's actually gone
wrong is that your ifdefs are for SAMSUNG_DMADEV instead of S3C_DMA
so s3c64xx is trying to use dmaengine. The driver doesn't actually
check to see if it failed to get the channels so it then tries to do the
transfer with a missing channel which unsurprisingly fails.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists