Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4644709ybx; Sat, 9 Nov 2019 21:33:47 -0800 (PST) X-Google-Smtp-Source: APXvYqw+4FLSlMeMC/6JibIRK2MnWAXdjF9RUuYfaBJ638uNx+QliasxuZ0xh6S7xR8gxR+rz9/V X-Received: by 2002:aa7:d709:: with SMTP id t9mr19254370edq.266.1573364027879; Sat, 09 Nov 2019 21:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573364027; cv=none; d=google.com; s=arc-20160816; b=NJilN3yRIZV8sM5Ohawi3ChLRDe/WqJkfCR9P6v2G45Fqw0+0rUR580c5eyw30HUVP 7q5mT1yvwhRLMJzPejOsYGZ7SFPsVdbAgM8Y0+k+GLcv/DJGCfmx9OVm5aoOcPHCflZ0 Yq6fVnaqiOBBpEqFS/9RzGITHuHh258jBE5D5iMHQZ1IQ4mgp7nfcnjb/3LAsQUvqo2F AGm2qI0W7fHazZKutTnSrVTa0WcxHMaXT/lYeGQ4PR6Tpgc0ZUHV6CUdOtNaLJymbLpG 7PtF2dP574mJVrTqmOw2ye04oTfSn0xY6ERQJDY82mJc4IrI4og0HrPuyZRymDcTBDFQ dkfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dW9rEHfAMAiZ8BDOMvHKousAF8Cv21mLTzBUYKxpOAI=; b=v1k07pkX9GbC8yKVlIM0wDPmdXAzT/AakrU1zEM2XvBP3Fkzy+eK0vaM9LQZTRUV7U ak9IGRdMcU0D4qs+UlBXZf2bXCg0RqtjhAa0i3w7+BkOWBSH57hq53RSKqEEUtOhL05z oTODY1O513GpJqgIg7yIvmE5jVd8p+TvY6DdtdAw43tfcPc0gFwtYUXLD4s+Wxf94x9R 1JC36o2yogBPg7w60uLfT2V2n/kzmq1w1qrnVlzx/mpEPQGGvUjQ2nqnUe1iQwDcCCh8 KnJFsIRe88cVt2WeOVEE69BrMp15bwv14JKIg3Wrm9etn67/Jx5TnHnzL6/kUjn+6Nj+ DutA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eRJv1meB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si7315397edq.227.2019.11.09.21.33.24; Sat, 09 Nov 2019 21:33:47 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eRJv1meB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726586AbfKJFck (ORCPT + 99 others); Sun, 10 Nov 2019 00:32:40 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33919 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbfKJFcj (ORCPT ); Sun, 10 Nov 2019 00:32:39 -0500 Received: by mail-pl1-f196.google.com with SMTP id h13so755872plr.1 for ; Sat, 09 Nov 2019 21:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dW9rEHfAMAiZ8BDOMvHKousAF8Cv21mLTzBUYKxpOAI=; b=eRJv1meBHaBsNs/LWfHXDNl3o4RXJ1hz/3kt5fdFOk79SGhh33/iUy1l0wzRyoZWCk x8b44T2LDZgKpCuw/tSGwVeaLlR2Q/ItR5Sn7MbIVaXY05a8jzUbAbCgQSZ4UE7hd04/ 64lPaX1SAl2J3fgqt1fBR+dWP3OV0zBSULRZ24l1vHNnxBMB+RK3oxgnGwNJQjUsLA6R vpTckT7770qWDDzfgiNhsY+rbI+pZ1Q82kbmEMdxQXzmp34k3zcC4a346/C37jYyl5XK V3AECsCFqp53kTxhYnBUhBxT8PhTMyLGA2teM05+B7Wt3Nb3fj7HuZWa1w4OJixlRo1S ++Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dW9rEHfAMAiZ8BDOMvHKousAF8Cv21mLTzBUYKxpOAI=; b=Y/aQ4TlY8637DxDByyN4baRG+4ysJQTOn1X+biNfSchGDQ8Eazw7ZH6/cEZVBnIqku Y0ng/xF19CTQgzIVI5hgsuYegYhQjSCu35OmjkOiTyjrqY0/AdJRC2wYp9rNPx/cdz4j boT09UGt339hcfzbEKMGY0zO8euruT6UiL3HC9eajQ0p5kUtFm4J3vDOTzsu/zrmxScH /3bLpLEXePTAza7yGWncI/A+dAxFstH3wXG47FltFy9bG50s5GWWYpOQr0Y5VTt8yjRe //GcxEu1zWo30gWkvliBYWLShyMvF4S3tUzSCG/WBsNqR2D3BNVHvbGCSeGI9KlFAl7f CLQQ== X-Gm-Message-State: APjAAAU7zGbXXgXYrytTA5ah5TBzbS+vozjY/23DfgVtEz5iyUEK+LZw HHW36e5vpYQPCzI9qc+vnp0= X-Received: by 2002:a17:902:142:: with SMTP id 60mr19903253plb.38.1573363958952; Sat, 09 Nov 2019 21:32:38 -0800 (PST) Received: from localhost.localdomain ([2001:19f0:7001:2668:5400:1ff:fe62:2bbd]) by smtp.gmail.com with ESMTPSA id v19sm9759298pjr.14.2019.11.09.21.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Nov 2019 21:32:38 -0800 (PST) From: Chuanhong Guo To: linux-mtd@lists.infradead.org Cc: Chuanhong Guo , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: [PATCH] mtd: spi-nor: add dual and quad read support for w25q128 Date: Sun, 10 Nov 2019 13:32:21 +0800 Message-Id: <20191110053222.22945-1-gch981213@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only w25q128 variant I could find with 0xef4018 as ID is w25q128fv, which supports both dual and quad read mode. Add these two flags in chip info. Signed-off-by: Chuanhong Guo --- drivers/mtd/spi-nor/spi-nor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index f89620005198..6adf16259841 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -2479,7 +2479,10 @@ static const struct flash_info spi_nor_ids[] = { }, { "w25q80", INFO(0xef5014, 0, 64 * 1024, 16, SECT_4K) }, { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) }, - { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) }, + { + "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) + }, { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "w25q256jvm", INFO(0xef7019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, -- 2.21.0