From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3B8FAC001E0 for ; Thu, 10 Aug 2023 14:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=k2wNeIlIkbuM2g4CBGnHjICpkuCpAuWxWLVjgN+f96E=; b=WkQ6r6ZLLckKc6 8cUaR5tYCaNrBc5janNyHelVYIe8efeLJd4P3MNwLAnUameyZnSWwdgMoixcaknPfd3JE+EStBapD Anhjk6tj21vbeneex93xUGRlxNtmDlEJOlRoOtcuYXEyMCPyS6Lp5DPIrnCY5zQCR6OAcbFxnhxST FLFw6d4YI7o8dPpNj0OXWpuoxoC/z5ce5aWIA64wMTMJvyh4Pp6HlIFXSgoX8SJ0Fsm62nDl732O/ h9d0C1E5JDtXeqYyMiVGdjrWmXuxh57HxShHS3BLuIjOTY05mejOZk9ZpUG4iSJNJ0qFABd6DKxhd jKavt8jzuI+GQEML42Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU726-007vgs-38; Thu, 10 Aug 2023 14:53:02 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU723-007vfz-0y for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 14:53:00 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 37AAftPi010419; Thu, 10 Aug 2023 16:52:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=BKMmwew5tFclpv2pO0AXv3ufer96Kv+HUcWutf+ce1Q=; b=S+ aSbS8SUQEas3o1QUbKIb21Q1ovVPkEULlFJiQ6E9FWJl0UXhMhdR9tjGK0U9zVRm M4KCHBHuQVTSbUtzb7PMsYe5nixH8OVdq3O1h7C26sRIWQTHC46led62QMgFtwoX +NfjpY2uhLELxoRynATdVo4V+zEKw3K59iH5mcScIb8ycVelccaPAG2i14Bdk7j5 eisF6XW4I+iWCnWBgNSBwoCZ4MeZG4uwmyHa3MEqeDfVKkn1UkbdMC2lhN3PtXwx 7xryWZelGmmw0tI1GS35FV+N1ezmfV/SOOAe5ecN+ZPbuWqwxYq4u+IUPsBTDRGI Lc83cGh3EGHpeTIc+ueg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3sctu3tyt6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 16:52:48 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 78358100064; Thu, 10 Aug 2023 16:52:29 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6F44E2194DD; Thu, 10 Aug 2023 16:52:29 +0200 (CEST) Received: from [10.201.21.122] (10.201.21.122) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 10 Aug 2023 16:52:28 +0200 Message-ID: Date: Thu, 10 Aug 2023 16:52:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v3 08/10] net: stmmac: platform: support parsing safety irqs from DT Content-Language: en-US To: Jisheng Zhang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Jose Abreu CC: , , , , References: <20230809165007.1439-1-jszhang@kernel.org> <20230809165007.1439-9-jszhang@kernel.org> From: Alexandre TORGUE In-Reply-To: <20230809165007.1439-9-jszhang@kernel.org> X-Originating-IP: [10.201.21.122] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To EQNDAG1NODE4.st.com (10.75.129.133) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_12,2023-08-10_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_075259_635366_D6F85867 X-CRM114-Status: GOOD ( 15.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/9/23 18:50, Jisheng Zhang wrote: > The snps dwmac IP may support safety features, and those Safety > Feature Correctible Error and Uncorrectible Error irqs may be > separate irqs. Add support to parse the safety irqs from DT. > > Signed-off-by: Jisheng Zhang > --- > .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > index 23d53ea04b24..29145682b57b 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > @@ -738,6 +738,18 @@ int stmmac_get_platform_resources(struct platform_device *pdev, > dev_info(&pdev->dev, "IRQ eth_lpi not found\n"); > } > > + stmmac_res->sfty_ce_irq = platform_get_irq_byname_optional(pdev, "sfty_ce"); > + if (stmmac_res->sfty_ce_irq < 0) { > + if (stmmac_res->sfty_ce_irq == -EPROBE_DEFER) > + return -EPROBE_DEFER; > + } > + > + stmmac_res->sfty_ue_irq = platform_get_irq_byname_optional(pdev, "sfty_ue"); > + if (stmmac_res->sfty_ue_irq < 0) { > + if (stmmac_res->sfty_ue_irq == -EPROBE_DEFER) > + return -EPROBE_DEFER; > + } > + > stmmac_res->addr = devm_platform_ioremap_resource(pdev, 0); > > return PTR_ERR_OR_ZERO(stmmac_res->addr); Acked-by: Alexandre TORGUE Regards Alex _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel