Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp767631pxb; Tue, 5 Apr 2022 22:28:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn61Z7GmwjON9d75qo4VriiYNo0l0Y3SJxjmcpwxqadSP+9xHlXXvEOxm5HpfFHE3HE2cN X-Received: by 2002:a65:460a:0:b0:399:24bb:c9ea with SMTP id v10-20020a65460a000000b0039924bbc9eamr5814731pgq.410.1649222910695; Tue, 05 Apr 2022 22:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649222910; cv=none; d=google.com; s=arc-20160816; b=JxU45gZHKYLq+G6blmXhGgP7kibLzyYEjTWbStoMEv5Cq3oITuLLs6gwR2Wff325aI yuRcUZDFr55o/6nCIbC+TWwPSuMc8US4YslMs20TUNUpfdnUajy4IXkprZxNZlCiah5s cQqwwAVKWFWYcfbmdsTYxWf3dy75GMMrjY/nS6HrI50vIUDIRQbdGvBME5WxvrJvNW8A 17pr+Q+5loWB9HFrDOLXQOzH1aHH7NdOB0XUl5u5j76WsaBVRZLUUTfcb43+x1zfZDkE NnaFJDDqZM0jkGWtacOnAdSt+AI5hvfUsnzZUocRIEi4cCzaIPLl9m0DZmGJfRWNcEAY gw0w== 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=6S4oBgr084pJY5AjWt0SE218ar7kVDqYu4XZa5mwyyo=; b=IccJe6Ai43iZS5vhdPQsPwmUHGMStOl+xgGNjx2JsIANKPyROPvVLY3qL6OcbMC0gQ LHLLGIEX35IsrdH3Tc2KWV06LD7486wfBbHKvQaO+c1SwKIb4gE9EzGjh0/dbQh9NWVB HOjDejl3gMUa8CAytF2fGWCjz3JbsulxcymdeJtCCbZozhmhgoJ9Hkm8AojFzQRBJlPn Pu5uphmFZnftFpYVNzuHuKaHkcGvT/SJ6m+Edh6jhB1F61M0flJg0eB1SGInEIQDkZ9L QdFn7hy7afR9VCIgRY6hvSjAMVtenxe6Hc6pd8RQAt+A1r8IonNiBeeRJjpkyQzyJg6x 8JNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ae8KIXXm; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1-20020a170902728100b00156126bf7d2si4544060pll.430.2022.04.05.22.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:28:30 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=Ae8KIXXm; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D226DD599D; Tue, 5 Apr 2022 21:02:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1577900AbiDEXRb (ORCPT + 99 others); Tue, 5 Apr 2022 19:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573654AbiDETdU (ORCPT ); Tue, 5 Apr 2022 15:33:20 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428A0245BD for ; Tue, 5 Apr 2022 12:31:21 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 235JVDpB035657; Tue, 5 Apr 2022 14:31:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649187074; bh=6S4oBgr084pJY5AjWt0SE218ar7kVDqYu4XZa5mwyyo=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Ae8KIXXmxWXu6l+Go3Ow0EnTuWC2CugQgQ/jRblMkKcYe5EyR5cRLo7T9ve2wHmYv Oxv5TSP/pMblriRFbArE5tBDInYMSRBzAiFxWVNTUtMdg4cqw0T2oYSEPtjPQNuhnv lfEnRKFQnRiGXoVi7CRNdgTjRgPRl1Pv2rMQOFqk= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 235JVDOl031228 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Apr 2022 14:31:13 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 5 Apr 2022 14:31:12 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) 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; Tue, 5 Apr 2022 14:31:12 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 235JVBE2105678; Tue, 5 Apr 2022 14:31:12 -0500 Date: Wed, 6 Apr 2022 01:01:11 +0530 From: Pratyush Yadav To: CC: , , , , , , Subject: Re: [PATCH v2 4/4] mtd: spi-nor: sfdp: Keep SFDP definitions private Message-ID: <20220405193111.pnekaivbsj7hronp@ti.com> References: <20220309144215.179449-1-tudor.ambarus@microchip.com> <20220309144215.179449-5-tudor.ambarus@microchip.com> <20220401200133.gyyvoe7xdbsww7cv@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 On 04/04/22 06:19AM, Tudor.Ambarus@microchip.com wrote: > On 4/1/22 23:01, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On 09/03/22 04:42PM, Tudor Ambarus wrote: > >> Keep the SFDP definitions private and expose just the definitions that are > >> required by the core and manufacturer drivers. > > > > I am not so sure about this. Since the post_bfpt hook passes in the bfpt > > table to flash drivers, they might end up wanting to use these for some > > checks like issi.c does for DWORD 1. They would have to move them back > > to sfdp.h for that, which just causes extra churn, and also puts some > > BFPT related defines in sfdp.h and some in sfdp.c. > > > > That's correct, but I think exposing just the public defines in sfdp.h is > the path to follow. We should keep private all the definitions that we can > private in sfdp.c and expose publicly in sfdp.h just the ones that are shared. > Flash collisions, and implicitly the need of public SFDP definitions, should be > an exception, so I expect sfdp.h to be short in size. I disagree. I think we should keep everything in the same place. And since we need to expose this to manufacturer drivers, that place is sfdp.h. Who is going to cast the tiebreaking vote here? ;-) -- Regards, Pratyush Yadav Texas Instruments Inc.