Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752549AbbGOMhS (ORCPT ); Wed, 15 Jul 2015 08:37:18 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:34798 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751938AbbGOMhO (ORCPT ); Wed, 15 Jul 2015 08:37:14 -0400 X-Auth-Info: huiuYb328KiXiff8vRWY7IJQW3LF2NudDwofCCLGWYQ= From: Marek Vasut To: Michal Suchanek Subject: Re: [PATCH 08/11] MTD: m25p80: Add option to limit SPI transfer size. Date: Wed, 15 Jul 2015 13:52:27 +0200 User-Agent: KMail/1.13.7 (Linux/3.14-2-amd64; KDE/4.13.1; x86_64; ; ) Cc: Richard Cochran , Geert Uytterhoeven , Mark Rutland , Krzysztof Kozlowski , Geert Uytterhoeven , MTD Maling List , Alison Chaiken , "Bean Huo =?utf-8?q?=E9=9C=8D=E6=96=8C=E6=96=8C?= (beanhuo)" , "linux-samsung-soc@vger.kernel.org" , Russell King , Vinod Koul , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Kukjin Kim , Ben Hutchings , "devicetree@vger.kernel.org" , Pawel Moll , Ian Campbell , Kumar Gala , Mark Brown , Dan Williams , "linux-arm-kernel@lists.infradead.org" , "grmoore@altera.com" , "linux-kernel@vger.kernel.org" , "linux-spi" , Huang Shijie , Rob Herring , Han Xu , Knut Wohlrab , dmaengine , Brian Norris , David Woodhouse References: <20150604171547.GA1530@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201507151352.27689.marex@denx.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1727 Lines: 44 On Wednesday, July 15, 2015 at 11:45:07 AM, Michal Suchanek wrote: > On 4 June 2015 at 19:15, Richard Cochran wrote: > > On Thu, Jun 04, 2015 at 10:31:45AM +0200, Michal Suchanek wrote: > >> You might want to try to run the bus at 60MHz or 80MHz and then the > >> values would probably again be different. > >> > >> The first two values are set in DT so the logical place for setting > >> the third is also in DT. > >> > >> Otherwise you would need some in-kernel table of these settings. > > > > Or a formula. > > This formula probably needs to take into account > > - the unknown reason for the pl330 to fail transfer Shouldn't that be fixed at the PL330 level ? This looks like fixing a problem at the wrong place :) > - the device transfer speed and transfer phase as set in DT > - possibly device-specific latency and board-specific trace design > and assembly tolerances If the design is broken, then cap the speed as for normal SPI device. > Seriously, until I have at least a vague idea why the transfer fails I > am not comfortable pulling some formula out of thin air and pretending > I have a working patch. > > On the other hand, a parameter you can set in the DT and which comes > with a suggested value which can be tuned depending on the system > seems more viable. The problem is, if you add a new DT binding, you'd have to support it forever, no matter how bad idea that binding turned out to be. 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/