Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753218AbbD3U6w (ORCPT ); Thu, 30 Apr 2015 16:58:52 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33460 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbbD3U6b (ORCPT ); Thu, 30 Apr 2015 16:58:31 -0400 X-Auth-Info: g9bNfLO+mIWEvsGfxg3jfPX2zTb7uk0yhJV1MmSdLd4= From: Marek Vasut To: Michal Suchanek Subject: Re: [PATCH 0/3] Using SPI NOR flah on sunxi. Date: Thu, 30 Apr 2015 20:34:36 +0200 User-Agent: KMail/1.13.7 (Linux/3.13-trunk-amd64; KDE/4.13.1; x86_64; ; ) Cc: Thomas.Betker@rohde-schwarz.com, Alison Chaiken , Huang Shijie , "Bean Huo ????????? (beanhuo)" , Ben Hutchings , Brian Norris , devicetree , David Woodhouse , Kumar Gala , "grmoore@altera.com" , Ian Campbell , Linux Kernel Mailing List , linux-mtd@lists.infradead.org, "linux-mtd" , "linux-sunxi" , Mark Rutland , Mika Westerberg , Pawel Moll , Rob Herring , "Rafa?? Mi??ecki" References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201504302034.36753.marex@denx.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 33 On Thursday, April 30, 2015 at 06:56:18 PM, Michal Suchanek wrote: > On 30 April 2015 at 18:30, 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. Best regards, Marek Vasut -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/