Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp805662rwb; Thu, 6 Oct 2022 04:56:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mTu8Pclx7FaNwIbEX+KAzjHv/Y4NZSoA/jiJz+LGCmsy3+g4YJfXsDanCzrYJ3IVr2uAD X-Received: by 2002:a17:907:7248:b0:78d:1cb2:41ac with SMTP id ds8-20020a170907724800b0078d1cb241acmr3793442ejc.283.1665057380091; Thu, 06 Oct 2022 04:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665057380; cv=none; d=google.com; s=arc-20160816; b=v5whmOBjoQi9WixUOZzB4ULtXTytbu6DFMlbzFS3xk3DSkWH08bp4hyBl7qXivksEL SOfHQRQOFGYagx2Lq85EChcXLNOi39fJys2z/vnwRjNek4ztYroKcNnoFt/RQ6OTCL1i WvBqviHl4D430vpdFVMAF/GCQ+o2bPyrVkyYaXGM8RnIth3HEc8FDIIkamQrKafftJof /qWf7IbpDx9WiShg8wLXn5hKtQ7ToSCiGPecD6lLL5MMnVlFdFWPqeA4WfOqSKoLoMop etyftQAt2doFYYzZ5Gi2gXoLbeDR4LGf+ysIBrEl9S3swBeHUJHI+kdItF9pRQTVrsu2 4SMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=FZe/U/2fgPatLd94i7eLXrAEz+0HGRCtOhliaKB6zJ0=; b=GSTEztR0c5Gdu4KB9XewNeZoYaZn35EMcRIb9KNejsBDS34nbXPI/CQ0roCmgfVgbn IMYsE+8hgz5V0k/VqrQ7tY2X0B51jh8W0NWOz44ry7gpilHOmTY/nGFriaREHKXPu5SO h+8gR6eubtd5rUZYAvgQHtxuraOFaPznVmzeRNcX8vq+vodwDSbPZ18vEgWzxuO0p10B Nle7fhMlydqHSB5Yrxq5eNSmNJRdZ9Kv1abbmKc5DajcVjFtLLgQ4pB6rrOUPUgnWfp5 qiUoYshsMo0/ziLo4Pg5/EysCnYVqK+PsTHt+lOsu0gMs70qhKtGJZW015BOngcpPYHu dKOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=GRfAMRSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc8-20020a170907168800b0078d426c2844si2019821ejc.213.2022.10.06.04.55.55; Thu, 06 Oct 2022 04:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=GRfAMRSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiJFLwi (ORCPT + 99 others); Thu, 6 Oct 2022 07:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJFLwg (ORCPT ); Thu, 6 Oct 2022 07:52:36 -0400 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE9589938 for ; Thu, 6 Oct 2022 04:52:35 -0700 (PDT) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id E56FA1244; Thu, 6 Oct 2022 13:52:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1665057154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FZe/U/2fgPatLd94i7eLXrAEz+0HGRCtOhliaKB6zJ0=; b=GRfAMRSc2WqOBy6QcR0DJ4tjLdZYTTLVq0XZ7XTWKS5mhxx4NRPlI9PEGJKxPbF3BnsLHm 4zpBICbXGn+X+vA6acySvyeKCEe/U+ZOzFo4UikoqKe50L8Z65JVKO1B85qiWrOAMIyelL QKrnkCMlEiyt08jLsRVLgVm2nPv/YSbixbOFViuwKfeVt8DgM5bG8UL/qUm+0afQDX8o4b bH3SWxt0dot+2i7QjUWTDjJywc5Oi/jaVTfaDsd4NvpWcBLT0EL1G+gchJ87H68KEWEy4p f1J0d9Ymw8Vqgk8/+CxIQ83sshm3sVaBd3+sfEbfyuzriQqZzl70GIyc1txX8A== MIME-Version: 1.0 Date: Thu, 06 Oct 2022 13:52:33 +0200 From: Michael Walle To: Delphine CC Chiu Cc: ~sircmpwn/email-test-drive@lists.sr.ht, patrick@stwcx.xyz, garnermic@fb.com, Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: spi-nor: winbond: add support for w25q01jv-im In-Reply-To: <20221006070841.2106194-1-Delphine_CC_Chiu@Wiwynn.com> References: <20221006070841.2106194-1-Delphine_CC_Chiu@Wiwynn.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <0dde4fa6ddeefa23314dbdcd1dd1b28b@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 2022-10-06 09:08, schrieb Delphine CC Chiu: > Add support for winbond w25q01jv-im chip. > > Signed-off-by: Delphine CC Chiu > --- > drivers/mtd/spi-nor/winbond.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/mtd/spi-nor/winbond.c > b/drivers/mtd/spi-nor/winbond.c > index ffaa24055259..2b02b05ceb0a 100644 > --- a/drivers/mtd/spi-nor/winbond.c > +++ b/drivers/mtd/spi-nor/winbond.c > @@ -139,6 +139,9 @@ static const struct flash_info winbond_nor_parts[] > = { > { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | > SPI_NOR_QUAD_READ) }, > + { "w25q01jv-im", INFO(0xef7021, 0, 64 * 1024, 2048) The name should be w25q01jvm. > + NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | > + SPI_NOR_QUAD_READ) }, That flash should support SFDP, so please try the following: + { "w25q01jvm", INFO(0xef7021, 0, 0, 0) PARSE_SFDP }, Also, we require an SFDP dump for new flash submissions, see [1]. -michael [1] https://lore.kernel.org/linux-mtd/4304e19f3399a0a6e856119d01ccabe0@walle.cc/