Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbbD3Q5C (ORCPT ); Thu, 30 Apr 2015 12:57:02 -0400 Received: from mail-wi0-f193.google.com ([209.85.212.193]:33976 "EHLO mail-wi0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbbD3Q47 (ORCPT ); Thu, 30 Apr 2015 12:56:59 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Michal Suchanek Date: Thu, 30 Apr 2015 18:56:18 +0200 Message-ID: Subject: Re: [PATCH 0/3] Using SPI NOR flah on sunxi. To: Thomas.Betker@rohde-schwarz.com Cc: 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 , Marek Vasut , Mark Rutland , Mika Westerberg , Pawel Moll , Rob Herring , "Rafa?? Mi??ecki" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 967 Lines: 28 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. Thanks Michal -- 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/