Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4166938rwo; Tue, 25 Jul 2023 01:26:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1Sbv0EAYffN4IMVe9RtcIzv2WTUGHs9cb5DMlVTHpkHEXgY3w6WdHaeEluVlaUruyCEx5 X-Received: by 2002:a17:906:7394:b0:994:4095:3abf with SMTP id f20-20020a170906739400b0099440953abfmr13249475ejl.14.1690273618755; Tue, 25 Jul 2023 01:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690273618; cv=none; d=google.com; s=arc-20160816; b=oxr7mL1nxBYBpcNgIejjWqaMflYICUcjkGgVofD4U6rEJW0dVvKCodxYu98klqPnqS EsG8BCD93hU99uyEWFZrqCylCQWfkVodgbVaWw0lOzbBoB0geHehaXfZJYtV/1p1k4mw wNjB6NKI3t5mJz9LT/szkuWUJ5bqv++rjZ7S5qk2ZOJEGZrI5bqmk2qt4RD3Yoa0H3NU /HIE8cG6LpM8zP19k8nP8pmVj/8o9fChrdLGYDyQ1JQ7xmXnvi4QeMr284r+8oCIoL2M SlIusXINKRdK3zA2aIAYXLGSevAj5AmVqf+oCqRh0/g/1fSoQg3M/hMvjoKNU8kPyro7 EZRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=KLs1UfhwOOeaUBOV26Gx4K3vBuDMVvonxjcwLCj13Hg=; fh=gEVBcGUnnFuxHkB5L+3ypRdQtWn18n5JUWH4DQs3XRM=; b=c4Jz+f+vCLafXRoON9cS64a+ZPl94J9TI80BKYeIEDfpYlq2yWuv+Zb+MiFwCTKGB+ fu3x6xlJZBUlxAmf6rKJqejdiqQd7sFAOd2eR07kGv9lle/8IDpg/SKSIYiodEC1Xg/Y L+5xvnusaPfn/ou4wjSfeWQ+ZdYybU34nYqRJAFTlIUYplpunrCE8Es/COg2KEv96Kxw XhGFelBl1dEBNeiNjkW3ZBpjh8oukxCB9LSnW5Un0OO9lKwNttui93NYk9JoGEXhL2Po vtY5eo9SRhK7VD45Bvi7ZNPQCKc5hMh1noKokPRkgvrhstQTnENNjp5t9ExLC0KAzrJh 3cMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y12Wzw4I; 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 dx5-20020a170906a84500b0098761ff7860si7931594ejb.635.2023.07.25.01.26.34; Tue, 25 Jul 2023 01:26: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=@ti.com header.s=ti-com-17Q1 header.b=y12Wzw4I; 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 S231963AbjGYH64 (ORCPT + 99 others); Tue, 25 Jul 2023 03:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjGYH6y (ORCPT ); Tue, 25 Jul 2023 03:58:54 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AFE5E5; Tue, 25 Jul 2023 00:58:52 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36P7wROP083164; Tue, 25 Jul 2023 02:58:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690271907; bh=KLs1UfhwOOeaUBOV26Gx4K3vBuDMVvonxjcwLCj13Hg=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=y12Wzw4Iu2TXxeCPAFt+QG7cv9UIyRzGc0ybdSAuKvI+MLImJuTBhOZ9dGXCuAchB nndIJBPS/Nbatc8vdIJleFimwainDuHqXDKO+CxUMxi2cABTxU5UVl1PS/ZS0LQMDs 9wBUXKTJ75mV8OKi5/S/Q/XgunmrCDaanCoR8wrA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36P7wRZL121042 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 02:58:27 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 25 Jul 2023 02:58:27 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 25 Jul 2023 02:58:27 -0500 Received: from [172.24.227.217] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36P7wLPJ102460; Tue, 25 Jul 2023 02:58:22 -0500 Message-ID: <5a4b293f-7729-ee03-2432-cd49ff92d809@ti.com> Date: Tue, 25 Jul 2023 13:28:21 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [EXTERNAL] Re: [EXTERNAL] Re: [PATCH v11 03/10] net: ti: icssg-prueth: Add Firmware config and classification APIs. Content-Language: en-US To: Simon Horman CC: MD Danish Anwar , Randy Dunlap , Roger Quadros , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , , , , , , , References: <20230724112934.2637802-1-danishanwar@ti.com> <20230724112934.2637802-4-danishanwar@ti.com> From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 25/07/23 1:14 pm, Simon Horman wrote: > On Tue, Jul 25, 2023 at 01:10:30PM +0530, Md Danish Anwar wrote: >> Hi Simon, >> >> On 25/07/23 12:55 pm, Simon Horman wrote: >>> On Mon, Jul 24, 2023 at 04:59:27PM +0530, MD Danish Anwar wrote: >>>> Add icssg_config.h / .c and icssg_classifier.c files. These are firmware >>>> configuration and classification related files. These will be used by >>>> ICSSG ethernet driver. >>>> >>>> Signed-off-by: MD Danish Anwar >>>> Reviewed-by: Andrew Lunn >>> >>> Hi Danish, >>> >>> some feedback from my side. >>> >> >> Thanks for the feedback. >> >>> ... >>> >>>> diff --git a/drivers/net/ethernet/ti/icssg_classifier.c b/drivers/net/ethernet/ti/icssg_classifier.c >>> >>> ... >>> >>>> +void icssg_class_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac) >>> >>> This function appears to be unused. >>> Perhaps it would be better placed in a later patch? >>> >>> Or perhaps not, if it makes it hard to split up the patches nicely. >>> In which case, perhaps the __maybe_unused annotation could be added, >>> temporarily. >>> >> >> Due to splitting the patch into 8-9 patches, I had to introduce these helper >> APIs earlier. All these APIs are helper APIs, they will be used in patch 6 >> (Introduce ICSSG Prueth driver). >> >> I had this concern that some APIs which will be used later but introduced >> earlier can create some warnings, before splitting the patches. >> >> I had raised this concern in [1] and asked Jakub if it would be OK to introduce >> these APIs earlier. Jakub said it would be fine [2], so I went ahead with this >> approach. >> >> It will make very hard to break patches if these APIs are introduced and used >> in same patch. > > Thanks, I understand. > > In that case my suggestion is to, temporarily, add __maybe_unused, > which will allow static analysis tools to work more cleanly over the > series. It is just a suggestion, not a hard requirement. > > Probably something along those lines applies to all the > review I provided in my previous email. Please use your discretion here. For now I think I will leave it as it is. Let reviewers review all other patches. Let's see if there are any other comments on all the patches in this series. If there are any more comments on other patches, then while re-spinning next revision I will keep this in mind and try to add __maybe_unused tags in all APIs that are used later. The idea behind splitting the patches was to get them reviewed individually as it is quite difficult to get one big patch reviewed as explained by Jakub. And these warnings were expected. If there are any other comments on this series, I will try to address all of them together in next revision. Meanwhile, Please let me know if you have any comments on other patches in this series. -- Thanks and Regards, Danish.