Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2196629pxb; Sat, 2 Apr 2022 20:08:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx9kxVvw86GnLuVouf9XnLZEbl6+dv3Ps3XubuuLMoSj9bcMb4+4QoXIi038hYZDiXcyIh X-Received: by 2002:a17:902:bf09:b0:153:99a6:55b8 with SMTP id bi9-20020a170902bf0900b0015399a655b8mr16908937plb.142.1648955312134; Sat, 02 Apr 2022 20:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648955312; cv=none; d=google.com; s=arc-20160816; b=FGwUPZuHyE75j8BOFHOWiA0k2ZzQsIqupuDXmnfbjf4Dio4a5/Q5DppUtnc6sXuoQJ 02DAFuIVGh9KoVJfDrjDNo0hSp40Y2Oa8LyyCL/SWj7rMeTf2LhzKF/Ab5cPNPphQZaJ CnMN3mCp4diEl06zQDdhgTcOd0dulvYXDc22lgqEHzYZkp3Qc8LtznsEmojSOjQraWdj oL38VrkNJ2BFUUtn3c4WOWkpphp06e2/wREy7dRcFH1D0dpnFuyT4t1rpoeRcnUEG94x YwGdhiXnp1FY9G/gG+94b4eVTNADo+smaghWuy7mvwAab+v1i0I7dU0EX8ayaUl5LntG F9ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PKlCkQuLNfKhUJdeMTsEMFy8vaBduxctt04jBNunlYs=; b=gatLidQJsGyNIIZ6q92CST85Yt6MOqPgWAUKnGBgh0FYrkhIgDYjLbz/DmzEyqRf9W dMLBLB5/CdVMXp3gBEr3KMWzhytwgoHr1CB0MeDaaghzvp3qtMlNSngVngXFHkduX4hL wXo38wxtqIrmalhrH+mKKI/IpEQTr222o9rxwUQdNIWf13XsbViCyrVUJjJr350GJYN5 TUp7ZidJoyuNEyFGgjxR1IeH2F8CwTSAMmTG8C88WRG7PEdo4t7GALUMfWXuwgMS8VH8 n81BSbu1KjFLsAHeOA6Um9fXnihHyWyUhvcKOK9r7GwvlDiOtiMlQ7BQtLiOsnCrEJH4 gltQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y938O2KV; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q25-20020a656859000000b00398eddc36e6si4297313pgt.676.2022.04.02.20.08.18; Sat, 02 Apr 2022 20:08:32 -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=@ti.com header.s=ti-com-17Q1 header.b=y938O2KV; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351197AbiDAT5f (ORCPT + 99 others); Fri, 1 Apr 2022 15:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233319AbiDAT5d (ORCPT ); Fri, 1 Apr 2022 15:57:33 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C01C14FFCD for ; Fri, 1 Apr 2022 12:55:43 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 231JtLNd078613; Fri, 1 Apr 2022 14:55:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1648842921; bh=PKlCkQuLNfKhUJdeMTsEMFy8vaBduxctt04jBNunlYs=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=y938O2KVxf78VOHFRyhYuy8I9mnmg8AUjedVrnmh1ddFAmKaRmDvALq+cWjn9T2np 2sbgq8pQ3Bwh7TCMZf2YxuxO2efniPW5wBBJLeVDUYQzogQGN1OKk9x9Lkoo9gQSYJ 0dGvcJy6DJAGriJiTlDh/89jioEx9u72FMigmkFc= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 231JtL7t098959 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 1 Apr 2022 14:55:21 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 1 Apr 2022 14:55:20 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 1 Apr 2022 14:55:20 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 231JtKuQ041523; Fri, 1 Apr 2022 14:55:20 -0500 Date: Sat, 2 Apr 2022 01:25:19 +0530 From: Pratyush Yadav To: Tudor Ambarus CC: , , , , , , Subject: Re: [PATCH v2 3/4] mtd: spi-nor: Favor the BFPT-parsed set_4byte_addr_mode method Message-ID: <20220401195519.chzdrnb6vdf6jlos@ti.com> References: <20220309144215.179449-1-tudor.ambarus@microchip.com> <20220309144215.179449-4-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220309144215.179449-4-tudor.ambarus@microchip.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 On 09/03/22 04:42PM, Tudor Ambarus wrote: > JESD216 SFDP defines in the BFPT standard methods to enter and exit the > 4-Byte Address Mode. The flash parameters and settings that are retrieved > from SFDP have higher precedence than the static initialized ones, because > they should be more accurate and less error prone than those initialized > statically. Favor the BFPT-parsed set_4byte_addr_mode method and use the > generic core methods where possible. > This patch may introduce regressions in case BFPT contains wrong data. The > fix is to introduce a post_bfpt() fixup hook and update the wrong BFPT > data. > > Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.