Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6677836imu; Wed, 14 Nov 2018 05:26:49 -0800 (PST) X-Google-Smtp-Source: AJdET5cSWKFN/1n62w0o5mvSwFr1k4G91x2GLrD864RcpOYTn9aCRqG9t5ERaGE8B5OPbfd/0rcA X-Received: by 2002:a62:2bd4:: with SMTP id r203-v6mr1966137pfr.105.1542202009882; Wed, 14 Nov 2018 05:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542202009; cv=none; d=google.com; s=arc-20160816; b=PXP6QtJS661uuN+w6GAP6ePtf0kvB9evpLxwvzeR6tE0PMtuAleT5kDnUpea9QxjVB MFlyowRPIOsQeqont+UaAO3s1119vKqnr5mPOPlt/jpnoumlCuOyz2thz2d/r1eGmFN8 FULOHdnWz4O+jJpydy1O7IV+XyBOu88m4gwkW85ry0W0BlSCvpqOjvBaJ8wOGQl/8jk8 GnizrgxFRoP1Rqbl13wokkfVmD+MR56EacbjC96VPtQ0ARYPiOiRU50Nv6VWwJEK5vE2 CveS95LC6e0sicemj4iKycFa88K2to6c0tXwayycJW6U6y7snFW8di2fytrJZEe2cnBz ZHTg== 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; bh=9AFdPV916Q16A0d4xVshhUR0uWLrJmHr11AvQKMd5aM=; b=POcVzdPfR4En5zMvPA03mrzRXvJMswnL5XzqbBXOeJkaj9AzKr1Ni+c8K3a+84XP1i eG4A2QYaUXWEMItG700gMAo3tfsvsYnaKHYpsGuFILm51jL07cVusxr4sKJHnDt1Xp/x WOLAiM2oCvB3av7Cl8MkItMMT9DuC92PzMtv6yUNFey24hHMae1O6Q1y1+O7vXx8/B3q 2Kvhn0uEuJkAqfxdfFyLkV6P7fM13PkdLDSBhnSTndqfr9TFafHD8oFv9MFoJigbE0fv yP+Bo7PHFpKIE/FpjxVgrkmBY6qDrFcQdhFgehjC7DHkdAsvTPiqD32a1CuYsEtDClUs JIWw== 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 p186si22348828pgp.37.2018.11.14.05.26.33; Wed, 14 Nov 2018 05:26:49 -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; 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 S1732860AbeKNX1i (ORCPT + 99 others); Wed, 14 Nov 2018 18:27:38 -0500 Received: from smtprz14.163.net ([106.3.154.247]:36102 "EHLO smtp.tom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727830AbeKNX1i (ORCPT ); Wed, 14 Nov 2018 18:27:38 -0500 X-Greylist: delayed 1713 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Nov 2018 18:27:37 EST Received: from antispam2.tom.com (unknown [172.25.16.56]) by freemail02.tom.com (Postfix) with ESMTP id 9AEBFB00D6E for ; Wed, 14 Nov 2018 20:55:26 +0800 (CST) Received: from antispam2.tom.com (antispam2.tom.com [127.0.0.1]) by antispam2.tom.com (Postfix) with ESMTP id 56FEE8150B for ; Wed, 14 Nov 2018 20:55:25 +0800 (CST) X-Virus-Scanned: Debian amavisd-new at antispam2.tom.com Received: from antispam2.tom.com ([127.0.0.1]) by antispam2.tom.com (antispam2.tom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QfkRvXp9gk1u for ; Wed, 14 Nov 2018 20:55:23 +0800 (CST) Received: from localhost (unknown [110.184.153.105]) by antispam2.tom.com (Postfix) with ESMTPA id 4104781424; Wed, 14 Nov 2018 20:55:23 +0800 (CST) From: Liu Xiang To: linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at, liuxiang_1999@126.com, Liu Xiang Subject: [PATCH] mtd: spi-nor: Add 4B_OPCODES flag to is25lp256 Date: Wed, 14 Nov 2018 20:55:18 +0800 Message-Id: <1542200118-3024-1-git-send-email-liu.xiang6@zte.com.cn> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The is25lp256 supports 4-byte opcodes and quad output. Suggested-by: Boris Brezillon Signed-off-by: Liu Xiang --- 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 3e54e31..3eba13a 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1357,7 +1357,7 @@ static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ) }, { "is25lp256", INFO(0x9d6019, 0, 64 * 1024, 512, - SECT_4K | SPI_NOR_DUAL_READ) }, + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) }, { "is25wp032", INFO(0x9d7016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, { "is25wp064", INFO(0x9d7017, 0, 64 * 1024, 128, -- 1.9.1