Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1285405imm; Wed, 26 Sep 2018 15:09:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV63leFRizBDZdqavtY8Tblu1+O3ILi1kOZIxRm2AKeURAorVACVcJJurBvItaIXTI5w1X71U X-Received: by 2002:a17:902:e85:: with SMTP id 5-v6mr7650337plx.73.1537999744049; Wed, 26 Sep 2018 15:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537999744; cv=none; d=google.com; s=arc-20160816; b=T0LbwTE5Qv3i1TfT7Jbp6X9VjZp0cDIbUstYI28qTVfILg85d8jqBZOCiQmk025S2T osSQHDm+Bpj7Bq9NKtiIfxnxGLoZLNyXHioJ7UosJKDNBj+0ErpCMiw7swyT+W9xZlVZ oM2bg217pZRfxvxiv2O5CBytrp3qAVzgItccorIOob5tCWpXrg2XFux44HkLmQ6y80De H76xMoFkBlOGV7TeirbMSj8//C/o3BkpOCw+nb6hI7dSnTo4+zPmiC994AZ5/Rx+984q v3XslLvNXKo1Cd1qPpsLrbtx5MIwYWMevoReACQUuJgCAdUIw7Z6wDpRKkvhdS6fLuzs i4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=bTtc4SmVG9W02eJ4eIxKYaASOls4NJv2p8Y5pEsAM6A=; b=YdhpHv8drJ3aHW60v7inXRQSCi1AT9XmDANLbjnPaW+Tcxfhc3GRTHKHEtO4bPKbtI yfmKkE2XCGJrotTTskN0wxc9MhXpUIX2YPNj95Y2LU+7p5Nzv0bmM6UnlW5FwlyJxVXF E07P5qp1ngjy9ntuE/AXz9a9wsSWVCHYJjemjA9xJZ9dn3hYBuiw67w96jSjFETqcgfp FJPZ3dYipVEnxIRATFY7hERkaKdB8pcKLWwfdKXTC/6MZ7Wfl8Nh4nUdzNTVDsyeaCo2 h8hLWy8Gm1NCZXKMbtsUvNvENuLpL7XMT1BK59kmpgnvN3OTlzNsBoSCfRCmlku3wPHL k86w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10-v6si165008pgc.105.2018.09.26.15.08.49; Wed, 26 Sep 2018 15:09:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727258AbeI0EXe (ORCPT + 99 others); Thu, 27 Sep 2018 00:23:34 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47118 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727216AbeI0EX2 (ORCPT ); Thu, 27 Sep 2018 00:23:28 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42LBsM5gSLz1qvP2; Thu, 27 Sep 2018 00:08:23 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42LBsM5HZZz1qqkx; Thu, 27 Sep 2018 00:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id sAXd_w-82tFh; Thu, 27 Sep 2018 00:08:21 +0200 (CEST) X-Auth-Info: ImGhTvzKu1uyr4+X6nXkNtVcWDtm6o3ohc9bDdais2g= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 27 Sep 2018 00:08:21 +0200 (CEST) From: Lukasz Majewski To: Frieder Schrempf , boris.brezillon@bootlin.com, Mark Rutland Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, yogeshnarayan.gaur@nxp.com, richard@nod.at, Stefan Agner , Fabio Estevam , Fabio Estevam , prabhakar.kushwaha@nxp.com, han.xu@nxp.com, broonie@kernel.org, david.wolfe@nxp.com, computersforpeace@gmail.com, dwmw2@infradead.org, albert.aribaud@3adev.fr, Lukasz Majewski Subject: [RFC/RFT PATCH v1 9/9] mtd: spi: Skip reading the Serial Flash Discoverable Parameters Date: Thu, 27 Sep 2018 00:07:39 +0200 Message-Id: <20180926220739.620-10-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180926220739.620-1-lukma@denx.de> References: <20180926220739.620-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The fsl-quadspi.c driver is not supporting SPINOR_OP_RDSFDP (0x5a) read opcode - in the legacy driver we do read some garbage data from AHB mapped area and then return on the first check (L2376 @ ./mtd/spi-nor/spi-nor.c) Signed-off-by: Lukasz Majewski --- drivers/mtd/spi-nor/spi-nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 442102be174e..c79b8c33aeeb 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1103,7 +1103,7 @@ static const struct flash_info spi_nor_ids[] = { { "n25q064", INFO(0x20ba17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_QUAD_READ) }, - { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) }, + { "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ | SPI_NOR_SKIP_SFDP) }, { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "n25q256ax1", INFO(0x20bb19, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_QUAD_READ) }, { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ) }, -- 2.11.0