Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1603334pxb; Thu, 14 Apr 2022 09:41:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy15nMrQrebFSyD8tjhKMuzVYfIYD1bV6coxc3d+I93W2o/XYe/XgmMggfcIUCgjVTezYvo X-Received: by 2002:a63:c015:0:b0:385:fe06:eb86 with SMTP id h21-20020a63c015000000b00385fe06eb86mr2915470pgg.132.1649954518883; Thu, 14 Apr 2022 09:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649954518; cv=none; d=google.com; s=arc-20160816; b=rW+QSu0ZTEGrxD1sKaSpv3y7UtpQ1OLqsVPXsU9F5qtgPkOehgp+HbCuVgAZWSl6PY W92Ny0MlyDBd7Me5aVsbnn9KYxv3Tm/A+IXSaJDew+qa6Qou0X42rUFnw1rBca0MjAwh VLVFL6HzK2psytJ+tz4tF3dK6nG5j+pQRRaZw4gr17yj+arH9LOe+TsiG/aWuc5d7hgE xdmyhZSyOxRzO4f/rjvsBtoR+fHw3Tg2f7JxV7AwjRcPRrMg1+F7Xi9spzd7Rz5A8gUE wIxT6amMCBO4wToSN3VAD1OGkqDRT8d5R1IvSQDCZWHncqhUw4lN4nf9ejljEWHzid3s EqhQ== 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=RK59Z34qpZOchcwXuSsdRUcPTe2qzh+QrqzPE04VL94=; b=pKnmjCMSNt1k4sa9iMRIQLidqF8IzmDpR5Fdhc8QSSEmOTCTC6h/2wJNB6t9QWU8eT ERnqxL5+pAePbQAASA6+5c7Q47Z6gW4gRdKsKZylxQ3K4w9kR9FbcWOArlzakkY/v5VE daO+IrK/Ti8xuv0WtLirzgKeY0tYDQKZOCX71P8OZJWBC7Nekux0ycokC/1IQT1n0Z2e cm2ZNXH84y3mjU0nQYHUFTyvahzWunz6mWlLfGQJwxhQQtk0M2t7xGTqnrZqSUiUzP4x QMDvcUIlmb2GXEcFqjnLyMpVH0dij/a+FU87fxEX2HG3xJHTe/UYD9yqchsddbstWRKg WUpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=eez+xibi; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a17090a8c0b00b001cb9071a897si2070056pjo.40.2022.04.14.09.41.43; Thu, 14 Apr 2022 09:41:58 -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=mail2016061301 header.b=eez+xibi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236275AbiDNKLs (ORCPT + 99 others); Thu, 14 Apr 2022 06:11:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbiDNKLq (ORCPT ); Thu, 14 Apr 2022 06:11:46 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1C9DB6 for ; Thu, 14 Apr 2022 03:09:21 -0700 (PDT) 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 03F842222E; Thu, 14 Apr 2022 12:09:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649930959; 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=RK59Z34qpZOchcwXuSsdRUcPTe2qzh+QrqzPE04VL94=; b=eez+xibiVp6z1DbgnH7st5RcWJxJ4xaUDQXjLIxljjCWf/+Uqhteb4hA7yKYDw2WMJQRgR QQya3nqxLGvGVHVOb3LlhfADhfGBxCvKucCwv+lov8z16cIz/Duea6HW1OHjJzhvzpM3Qk X3MLsaPBrPhi54KxtwUA6w6J5DrRuIs= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 14 Apr 2022 12:09:18 +0200 From: Michael Walle To: niravkumar.l.rabara@intel.com Cc: 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: issi: Add IS25WP512 device In-Reply-To: <20220414130004.945924-1-niravkumar.l.rabara@intel.com> References: <20220414130004.945924-1-niravkumar.l.rabara@intel.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 > Add is25wp512 info to spi_nor_ids[] table entry. > > Rename is25lp256_post_bfpt_fixups to is25xx_post_bfpt_fixups > as a common function for all is25xx post_bfpt fixups. > > Signed-off-by: Niravkumar L Rabara We require SFDP dumps of new flashes. Therefore, you can only add flashes which you actually have (and have tested). See [1] how to provide such a dump. > --- > drivers/mtd/spi-nor/issi.c | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) > > diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c > index c012bc2486e1..14fe07e55f85 100644 > --- a/drivers/mtd/spi-nor/issi.c > +++ b/drivers/mtd/spi-nor/issi.c > @@ -9,24 +9,27 @@ > #include "core.h" > > static int > -is25lp256_post_bfpt_fixups(struct spi_nor *nor, > +is25xx_post_bfpt_fixups(struct spi_nor *nor, Please use is25_post_bfpt_fixups. But how sure are you that this affects their whole nor flash line? is25 is the prefix for all their SPI NOR flashes, no? I'm not arguing against using this name and it can certainly be changed in the future if we know more. -michael [1] https://lore.kernel.org/linux-mtd/4304e19f3399a0a6e856119d01ccabe0@walle.cc/