Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6719286imu; Wed, 14 Nov 2018 06:03:47 -0800 (PST) X-Google-Smtp-Source: AJdET5eXirP1cUrnU4oXVBAeifX7p6THYIDc8RxBRcFSpNb+dPUsKKbciDMiN/fQ6pwh+VemEgw5 X-Received: by 2002:a63:5b48:: with SMTP id l8mr1903225pgm.80.1542204227492; Wed, 14 Nov 2018 06:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542204227; cv=none; d=google.com; s=arc-20160816; b=IhVBw1rKnuMuWyyMQenWblTzyZz+ZNrbbrv5xLzVIQvteRUyimfSNZvmqfYZGYMCEh zC+67oADrk/IUjrI8hV7GJ13ggwDyHTaDZUHndxHGcia5rN/bhI6F7N6eGgNN2Dpk16Y t3Q415UGI5NOGrKOgxnXL7f8rRfzRRQWZ3qzL/lBaeBZmrOEcg0/drG6QxF2nWdC08tq VCscNiRCjNpVp/7S78YO7Sc3LdhvJc65bt/4bb/TIt1DTLZCvP+OVnfbnfy1ih/9lAiB VOkTsIZ8SpN2rvFGae8FVDvvnd0Ch8RygK/H2LLqTAdCcMccmCf/vGUDIy8yA3S3HiVe YMGA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CT8X+oQFK/JtAhGmlgi9Hp8NnYEFrVg8oBF97rFdF0E=; b=Ywc5mCrNz7ATYmzjWEhAEUqbwKUgPbU+V1PuPTEgLXvKN3Yidg54tC0jm+s32G0RgD Y88D4UjkMgmQkYRUwE+MCFfrwoy4vp4jNuZPYpTqWzKMG+BQbswrCu7h2HvcKxRJjDb0 YurOt7xlZtKccn5fBa2iTYxWg7tYUv0siy6YQtbcrbcnJGtXlegEN48ec+/7hvmNaYux SgyAYYmp/2fXRZkaQ5QWEWzeYOUjrkWH+NlKIbfT/74VAzgCtpYNkzSYclqsgrDDkn7W bVvoFbcy8VkyaVfWwq6N2WfOEoGaC2fDpTRqKO5yd60TpZReKK/pwPQuqswz4ep2hYIq 6oQg== 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 z5si13276031pgj.177.2018.11.14.06.03.24; Wed, 14 Nov 2018 06:03: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; 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 S1732988AbeKOAEs (ORCPT + 99 others); Wed, 14 Nov 2018 19:04:48 -0500 Received: from mail.bootlin.com ([62.4.15.54]:37531 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727797AbeKOAEr (ORCPT ); Wed, 14 Nov 2018 19:04:47 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8C7FA20747; Wed, 14 Nov 2018 15:01:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (aaubervilliers-681-1-30-49.w90-88.abo.wanadoo.fr [90.88.15.49]) by mail.bootlin.com (Postfix) with ESMTPSA id 4DDBC206A1; Wed, 14 Nov 2018 15:01:24 +0100 (CET) Date: Wed, 14 Nov 2018 15:01:23 +0100 From: Boris Brezillon To: Liu Xiang Cc: linux-mtd@lists.infradead.org, marek.vasut@gmail.com, richard@nod.at, linux-kernel@vger.kernel.org, liuxiang_1999@126.com, computersforpeace@gmail.com, dwmw2@infradead.org, Tudor Ambarus Subject: Re: [PATCH] mtd: spi-nor: Add 4B_OPCODES flag to is25lp256 Message-ID: <20181114150123.65623741@bbrezillon> In-Reply-To: <1542200118-3024-1-git-send-email-liu.xiang6@zte.com.cn> References: <1542200118-3024-1-git-send-email-liu.xiang6@zte.com.cn> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Nov 2018 20:55:18 +0800 Liu Xiang wrote: > The is25lp256 supports 4-byte opcodes and quad output. > > Suggested-by: Boris Brezillon > Signed-off-by: Liu Xiang This one looks good. Tudor, can you have a look? > --- > 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,