Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp383505rdh; Thu, 23 Nov 2023 06:34:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuWMoyxSFL4td8YF93JIj7aqMYZT9/va1QeFPv80Odo5pyUoAMkFPiZp3tyvjQG2DgVS3V X-Received: by 2002:a05:6a00:10d4:b0:6cb:ccea:e311 with SMTP id d20-20020a056a0010d400b006cbcceae311mr5141073pfu.4.1700750094866; Thu, 23 Nov 2023 06:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700750094; cv=none; d=google.com; s=arc-20160816; b=pKd2lDns1yFm8OZoUWyr10Rh4SpYUCiDQQPPq0XA0M8wBVHaKah3FU7Oi5fOemnmN6 ab9tsktmI35JFxmc5Jp5pc9ACYOHas6DGzRYa2texpRVxRnRrEk2ktO0G2veZX6VHgor jlQr4ElVx9x9bTbcsB4uRzQt5mGYDS/11h7zR7ggZGgDoObN6u7TGp0bnvJL+Bkkw8Vd +xbRe3Zoq18stdU/e4onbKGFImro3JWv4FR0t8+OIAVq319yaT7LnSjDVPV8JSUfL8UR ukigYJbXzUt0J2/nzzd0jfJotxug/akzzf2DoxiHxOaEZlB+kjvLyOUKuxhw1QnsZdg2 kUNg== 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=dNzKhKloGXlRcR4PSJmpUFeV2jcVwueUiLu5yF/zJXI=; fh=xoaxwifE1FxYtnerj0WyteU+IiY5CWPHKDErLUvEGCU=; b=BImwZjDEmdqypPQ9cOchvN4f3JprdA4rKP9yAv/zESONC4l9cxVfCm45Nsg7383N/9 DjF5CTArOugF84IOjAwTfoGMpD88B7gvSkx/ke/rYjpH+YeIBE4yT8RmqHWISbJ3+7JC SOnO1sZIPnKRxKngnZ2Kwcm+GyufIVkZjt0JKHtcJR1GbCmZDEjCRSKPxI+NUiA55P+H wH+tfU6sPFaI0iqk0I5yBZkbPCbcG5pxiGP94DZZXoNSt1D/IxgDhcpoj5cRtn9QJlWC 4QKA/6t72Kam1PrDcQPADZ+N7677HwrZJ+25NJorBdmtcvysbfv5YzLQew3lErrp9LBD k0mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jLKhMH45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d13-20020a056a00244d00b006cb4f312136si1372635pfj.200.2023.11.23.06.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jLKhMH45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5CD328077850; Thu, 23 Nov 2023 06:34:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345821AbjKWOe3 (ORCPT + 99 others); Thu, 23 Nov 2023 09:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345772AbjKWOe2 (ORCPT ); Thu, 23 Nov 2023 09:34:28 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239FEA4 for ; Thu, 23 Nov 2023 06:34:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79A54C433CA; Thu, 23 Nov 2023 14:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700750074; bh=UQZtD3/J3EWnFay8ssfBnsqxH7p2amiDhWgYKfTALAc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jLKhMH45lRed+KJ6STR6/3MFTjtf2H5ttXPl++EXW5oXxN5ZADshoxAH3rjdI/XmN FQmAysB71pY/tMhWGAscAyE6GwlsOv3l8MrcZh2s7HDOoiKl3yd6WwgE6yzzEtzq2L QICQbbCCR4hklr2qYY7tlPIcrUN1WZ0RC/jTdpWho5iFEtxZGG6ZNmv/6vJmazsiPr 93Ps2rZnFk+FlIfxhpPRiY6nMcDv+ZzhNZiZMiPtAQQcnudYPS2xnU6p8AJZl5IL4l Q1ifqstmNG1GZ7qmfmFghsSRc5yaxRHIzCabLf/E7Fy//Yq1bOQu7RWACDuHHCm8Fn xvtLgNDaWA4Kg== Date: Thu, 23 Nov 2023 14:34:28 +0000 From: Simon Horman To: Suraj Jaiswal Cc: Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Prasad Sodagudi , Andrew Halaney , kernel@quicinc.com Subject: Re: [PATCH net-next v3 3/3] net: stmmac: Add driver support for DWMAC5 fault IRQ Support Message-ID: <20231123143428.GH6339@kernel.org> References: <62eaaace3713751cb1ecac3163e857737107ca0e.1700737841.git.quic_jsuraj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62eaaace3713751cb1ecac3163e857737107ca0e.1700737841.git.quic_jsuraj@quicinc.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 23 Nov 2023 06:34:44 -0800 (PST) On Thu, Nov 23, 2023 at 05:08:15PM +0530, Suraj Jaiswal wrote: > Add IRQ support to listen HW fault like ECC,DPP,FSM > fault and print the fault information in the kernel > log. > > Signed-off-by: Suraj Jaiswal ... > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > index 1ffde555da47..bae1704d5f4b 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > @@ -690,9 +690,25 @@ devm_stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac) > #endif /* CONFIG_OF */ > EXPORT_SYMBOL_GPL(devm_stmmac_probe_config_dt); > > +int stmmac_get_fault_intr_config(struct platform_device *pdev, struct stmmac_resources *res) Hi Suraj, stmmac_get_fault_intr_config() appears to only be used in this function. If so it should be static. Also, please consider limiting Networking code to 80 columns wide. static int stmmac_get_fault_intr_config(struct platform_device *pdev, struct stmmac_resources *res) ... -- pw-bot: changes-requested