Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756749AbbHZOjN (ORCPT ); Wed, 26 Aug 2015 10:39:13 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:51643 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbbHZOjL (ORCPT ); Wed, 26 Aug 2015 10:39:11 -0400 X-Auth-Info: +CFs/sRlRGBiCyaa/oGBIcJqV84PHLO+8jsiWzqdoF4= From: Marek Vasut To: Cyrille Pitchen Subject: Re: [PATCH linux-next v5 3/5] mtd: spi-nor: allow to tune the number of dummy cycles Date: Wed, 26 Aug 2015 16:39:02 +0200 User-Agent: KMail/1.13.7 (Linux/3.14-2-amd64; KDE/4.13.1; x86_64; ; ) Cc: nicolas.ferre@atmel.com, broonie@kernel.org, linux-spi@vger.kernel.org, dwmw2@infradead.org, computersforpeace@gmail.com, zajec5@gmail.com, beanhuo@micron.com, juhosg@openwrt.org, shijie.huang@intel.com, ben@decadent.org.uk, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-mtd@lists.infradead.org References: <4324f398c0e69e3057e7da6a1a3e0328b44f224f.1440580764.git.cyrille.pitchen@atmel.com> In-Reply-To: <4324f398c0e69e3057e7da6a1a3e0328b44f224f.1440580764.git.cyrille.pitchen@atmel.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201508261639.02377.marex@denx.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1206 Lines: 27 On Wednesday, August 26, 2015 at 02:30:25 PM, Cyrille Pitchen wrote: > The number of dummy cycles used during Fast Read commands can be reduced > to improve transfer performances. Each manufacturer has a dedicated set of > registers to provide the memory with the exact number of dummy cycles it > should expect. Both the memory and the (Q)SPI controller must agree on > this number of dummy cycles. > > The number of dummy cycles can be found into the memory datasheet and > mostly depends on the SPI clock frequency, the Fast Read op code and the > Single/Dual Data Rate mode. > > Probing JEDEC Serial Flash Discoverable Parameters (SFDP) tables would > only provide the driver with a high enough number of dummy cycles for each > Fast Read command to be used for all clock frequencies: this solution > would not be optimized. > > Signed-off-by: Cyrille Pitchen Acked-by: Marek Vasut 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/