[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150520235447.GZ11598@ld-irv-0074>
Date: Wed, 20 May 2015 16:54:47 -0700
From: Brian Norris <computersforpeace@...il.com>
To: Marek Vasut <marex@...x.de>
Cc: Michal Suchanek <hramrach@...il.com>,
Thomas.Betker@...de-schwarz.com,
Alison Chaiken <alison_chaiken@...tor.com>,
Huang Shijie <b32955@...escale.com>,
"Bean Huo ????????? (beanhuo)" <beanhuo@...ron.com>,
Ben Hutchings <ben@...adent.org.uk>,
devicetree <devicetree@...r.kernel.org>,
David Woodhouse <dwmw2@...radead.org>,
Kumar Gala <galak@...eaurora.org>,
"grmoore@...era.com" <grmoore@...era.com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-mtd@...ts.infradead.org,
linux-mtd <linux-mtd-bounces@...ts.infradead.org>,
linux-sunxi <linux-sunxi@...glegroups.com>,
Mark Rutland <mark.rutland@....com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Pawel Moll <pawel.moll@....com>,
Rob Herring <robh+dt@...nel.org>,
Rafa?? Mi??ecki <zajec5@...il.com>, linux-spi@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: Re: [PATCH 0/3] Using SPI NOR flah on sunxi.
On Thu, Apr 30, 2015 at 08:34:36PM +0200, Marek Vasut wrote:
> On Thursday, April 30, 2015 at 06:56:18 PM, Michal Suchanek wrote:
> > On 30 April 2015 at 18:30, <Thomas.Betker@...de-schwarz.com> wrote:
> > > Hello Michal:
> > >> I tried to connect a SPI NOR flash to my sunxi board and due to the
> > >
> > > current
> > >
> > >> sunxi SPI driver limitations it does not work.
> > >>
> > >> The SPI driver returns an error when more than 64 bytes are
> > >> transferred at once
> > >> due to lack of DMA support.
> > >
> > > Wouldn't it be easier to fix the SPI driver to handle transfers larger
> > > than 64 bytes, filling and draining the FIFO multiple times if
> > > neccessary? (As far as I can tell, most SPI drivers do this.)
> >
> > Yes, the intent is to fix this by adding dma support to the driver,
> > eventually.
> >
> > The patch might be still useful for other hardware with developing SPI
> > support.
>
> Please just fix the controller driver to correctly handle arbitrary transfer
> lengths.
Just noticed this. Yes, that would definitely be a better option!
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists