Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1800601pxb; Wed, 9 Feb 2022 04:57:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyey2lFwU+KyVho2fQPRv48YeRpBiALlqjdQd+vKQrjSnL21ydj8N++mZEOgHCxaY2Kk3QX X-Received: by 2002:a17:90b:3e8e:: with SMTP id rj14mr2364869pjb.38.1644411420101; Wed, 09 Feb 2022 04:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644411420; cv=none; d=google.com; s=arc-20160816; b=i5YsqEX53oTdjIC+898w1M7pmuD4FQme1DghNMcQYGVJFbgYyl4bdjVhTuoWuiLM9t gfBcIBOs3Df4UNpKGvbZUp8+vdLBVxxoQgSmqQgbHAXneJm/cLAKKwNegKSqR/vE5R4L zh3UOppWw8ObllfL061qOWEKTZ4jC49EgD+mxTATFyc3PF003TXyfwS7mj6HG+FhWY3q bcIfz1coPEwybCNCez7SsT6kDZGC3xjJThRDk885vmLcenUuc/3fXY7tPEdxFSgZInL3 ubFobH+9gSO/rQ+OSRBJQCVPDl9OYQnFPX/vnw47P2/lx1J01X4uV5XuqWk1I4Rzp+H8 OolA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=nWdm67gA7+zk9jlgZ1z7LIqczKn6nqGWLdX4mNABBpA=; b=Bl2XSXpfj8h0dLc2Go/2GZHANPH3DbfNVyzwLWnmomIku3UDkIwkI51mRUs7Vizs/h wzHNBbWnFd9l9iBZ7jj4l2PK2Nz4FSIGR58U/qTn9vP4BsQ67tjImvs1WM6Qndtu/GQE tmn7M6zK3KOWF6c2Kq+08W5gCJ+kkRZ3zP4Xi2mR+RKi5AVe9GzER/YCoxHkfJ9CI00M ew+77ShE0uBuPYrWP+t4YCFvGkluPWZdBkelF+emMbLNnwfwQMy6DJ+g1jaM4WTDLFCy uVJ0KpE3oi7gbIlrM3KDmj9D09c1Tl5MkJMb5cP6txqytdFuJK7jkAtRVsR7rGlMXLn8 gCVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=sP8DEhoF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m8si15138960pls.500.2022.02.09.04.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:57:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=sP8DEhoF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 045D3E16684C; Wed, 9 Feb 2022 02:32:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240745AbiBIIa4 (ORCPT + 99 others); Wed, 9 Feb 2022 03:30:56 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239756AbiBIIat (ORCPT ); Wed, 9 Feb 2022 03:30:49 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A54C05CB8C for ; Wed, 9 Feb 2022 00:30:53 -0800 (PST) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2DAC22222E; Wed, 9 Feb 2022 09:30:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644395449; 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=nWdm67gA7+zk9jlgZ1z7LIqczKn6nqGWLdX4mNABBpA=; b=sP8DEhoFsO/Gw8L9NMTquKBIGMi4HfGOmKl4/RoNlpvasb36cbmzpgbbcMKSzRGGnXRs7F 4T2Gv9z5PofDXo/oGkKVpezhvSITuiuw2kwd6bfPmVYOpTGCap8GmsCsZ26EYGVZQiBXap UWw/8CnCw8deWcukGJjEclQup+DoJmY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 09 Feb 2022 09:30:46 +0100 From: Michael Walle To: Shaik Sajida Bhanu Cc: dianders@chromium.org, tudor.ambarus@microchip.com, p.yadav@ti.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, quic_stummala@quicinc.com, quic_vbadigan@quicinc.com, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sartgarg@quicinc.com Subject: Re: [PATCH V5] mtd: spi-nor: winbond: Add support for winbond chip In-Reply-To: <1644350330-8809-1-git-send-email-quic_c_sbhanu@quicinc.com> References: <1644350330-8809-1-git-send-email-quic_c_sbhanu@quicinc.com> User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-02-08 20:58, schrieb Shaik Sajida Bhanu: > Add support for winbond W25Q512NW-IM chip. Also please include that in the subject. Eg. mtd: spi-nor: winbond: add support for W25Q512NW-IM > > Signed-off-by: Shaik Sajida Bhanu > Reviewed-by: Doug Anderson > --- > Changes since V1: > - Added space before name of the flash part as suggested by Doug. > > Changes since V2: > - Updated chip name as w25q512nwm as suggested by Doug. > > Changes since V3: > - Updated flash_info flags passing according to below patch. > > Changes since V4: > - Added OTP support for SPI card as suggested by Michael Walle. > - Updated SFDP flags passing as suggested by Pratyush Yadav. > --- > drivers/mtd/spi-nor/winbond.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mtd/spi-nor/winbond.c > b/drivers/mtd/spi-nor/winbond.c > index 675f32c..315b9f6 100644 > --- a/drivers/mtd/spi-nor/winbond.c > +++ b/drivers/mtd/spi-nor/winbond.c > @@ -124,6 +124,10 @@ static const struct flash_info winbond_parts[] = { > { "w25m512jv", INFO(0xef7119, 0, 64 * 1024, 1024) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ | > SPI_NOR_DUAL_READ) }, > + { "w25q512nwm", INFO(0xef8020, 0, 64 * 1024, 1024) > + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) > + PARSE_SFDP This usually goes first, eg. PARSE_SFDP FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) OTP_INFO(256, 3, 0x1000, 0x1000) > + OTP_INFO(256, 3, 0x1000, 0x1000) }, > { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024) > NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | > SPI_NOR_QUAD_READ) }, Otherwise the SFDP dump is still missing as requested in my comment in v4. Please make sure you put it in the comment section of the patch, that is under the "---" line. Then I think, this patch is good. -michael