Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp836533ybz; Fri, 17 Apr 2020 10:55:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKrhIHaAbedY8hDFtKw0AjBtq3pVy/LmQrg2i34omC/AnxkZ/N+HogfiUViAMM+yPXtIRTd X-Received: by 2002:aa7:d0cf:: with SMTP id u15mr4251069edo.233.1587146105314; Fri, 17 Apr 2020 10:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587146105; cv=none; d=google.com; s=arc-20160816; b=Zd/V4eJc6YvcvY4kOalMyPBWKfI0I3zj7X5rnvEKuIQVf3yzspXAeeN/cciXuL2qov 32hGpvb4MLlKrU5/zdMf9Eiwx13zcvjYlEgN41W+pY/w1Cpt6xZIi9JghQalhVp6h1VI TYKWnYl+OQhHIszJ9Jiq7KDys1FrdQ/kZr5pJJj6JBTzFqk4M5nTh2iRE7FAu/VHeng/ YNOdnyaUoSQ5sIr2cmdkLfH3dCQmETtZL1FbICeQ/78/ZF1qJz1AUccUI9IYz4mKkxp+ 32F98s57HjlZXvrQknSV5648oIyuZ3uPhNRDElLaDMLOxONfvSfNTosS4dOzWp4iEUfI BNzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=X1VDLtDcdixU1fyKd9mCukwsMv4/as9D2oS2Qr75UTs=; b=OV51gFN/R3HotJZt6b3ZIvNhXzorjNk2xW84UM6Ks0zyaeYScTGY+u27TuFeLVTgoh ht3HsZIwaQCcBA0XV4TNIge0yOE4dmktRrJ/VncVsH7WV1HUFEwRpDiBMrlQXCieyMGj 9yoQSlS6t0SpHuvfRlXapGeiDnobSRdT9VHdaa9UNlqutB7m4AAIPa/Vd5aTu/Iinnd9 Y/PexZyAR3NIgxyHkmnCp7W7oVdnbQ94MCPKhBy48mkpONsPJq8ZmrxMbXZUq0awMIDD GZtKBsFhh0Bo/1lkfyI9WvuvoKuG2yXbKX8ZgoJStKeYMhpyujBidaqvY3rb1gtQVchg Mosg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b="Wd/3otyZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si12428952ejb.184.2020.04.17.10.54.41; Fri, 17 Apr 2020 10:55:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b="Wd/3otyZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730085AbgDQRx2 (ORCPT + 99 others); Fri, 17 Apr 2020 13:53:28 -0400 Received: from rcdn-iport-7.cisco.com ([173.37.86.78]:59290 "EHLO rcdn-iport-7.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729980AbgDQRx2 (ORCPT ); Fri, 17 Apr 2020 13:53:28 -0400 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Fri, 17 Apr 2020 13:53:28 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1064; q=dns/txt; s=iport; t=1587146007; x=1588355607; h=from:to:cc:subject:date:message-id; bh=qY+9PAFy7cPu/uPuW56FYsLvpzKOkBk6Uqf0v5jAxjs=; b=Wd/3otyZcm2e2mjgbYvdIbhZh0F40w8ce6aseWnMTUdHQQJJ9iHC8Ckc AtPQicl8RoRWsv6rv7xUhBqkAwO6JB6WyfHWT31ckDLzc0RWcLEBSFaJ6 w53iYHXnqmpwO/Vg3aZjyIEegFlZV5Uv6LRW6PKaS5Fr96dfBCafLvql9 I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AdBABq6ple/4oNJK1mHgELHIFwC4I?= =?us-ascii?q?pgUEyKq56gXsKAQEBDi8EAQGERIIRJDUIDgIDAQELAQEFAQEBAgEFBG2FYoZ?= =?us-ascii?q?xgT4TgyaCfa53gieJIYFAFIEkh1OEZhqBQT+EX4QVhioEmR+YUYJOgQGWVgw?= =?us-ascii?q?dnD4BLaxGgVQBNoFXMxoIGxWDJFAYDaBAIQMwjHKCRQEB?= X-IronPort-AV: E=Sophos;i="5.72,395,1580774400"; d="scan'208";a="746715712" Received: from alln-core-5.cisco.com ([173.36.13.138]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 17 Apr 2020 17:46:21 +0000 Received: from zorba.cisco.com ([10.24.5.71]) by alln-core-5.cisco.com (8.15.2/8.15.2) with ESMTP id 03HHkKH4019594; Fri, 17 Apr 2020 17:46:20 GMT From: Daniel Walker To: Tudor Ambarus Cc: xe-linux-external@cisco.com, Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: spi-nor: Add 4B_OPCODES flag to n25q256a Date: Fri, 17 Apr 2020 10:46:19 -0700 Message-Id: <20200417174620.16420-1-danielwa@cisco.com> X-Mailer: git-send-email 2.17.1 X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.5.71, [10.24.5.71] X-Outbound-Node: alln-core-5.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The n25q256a supports 4-byte opcodes so lets add the flag. Tested on Cisco IoT platform hardware using Marvell A7040 SoC. This patch was base on one from Guo Yi . Cc: xe-linux-external@cisco.com Signed-off-by: Daniel Walker --- drivers/mtd/spi-nor/micron-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index 6c034b9718e2..471fe2bc2ba4 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -37,7 +37,7 @@ static const struct flash_info st_parts[] = { SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, { "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | - SPI_NOR_QUAD_READ) }, + SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, { "mt25qu256a", INFO6(0x20bb19, 0x104400, 64 * 1024, 512, SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, -- 2.17.1