Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6298105rwn; Tue, 13 Sep 2022 01:59:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Lw/eF95I3qd5EEIS+qr587YvLm6R27k/y6AmdU/x8YcFO9NCEQaO9NO8yIZSZwmhnly2Y X-Received: by 2002:a17:90b:180e:b0:202:e725:19e2 with SMTP id lw14-20020a17090b180e00b00202e72519e2mr2879883pjb.163.1663059580633; Tue, 13 Sep 2022 01:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663059580; cv=none; d=google.com; s=arc-20160816; b=pKCWKW3tc6iM7PsMVf6gwgm6W1daDwkKPi2AY2X8N4SfHdm1LkPzEzjAsX6i4YDIMJ +q0TQ3twZqEjvlwPlWTkboIkzUMyBY9O2yyoTiooVEDmWfKjzATe9sbczGUs0AaJi5ws AjKoenXhKly0+ayMhFWWa+gcSaW2pfP3J8Ak7t5Jd3bj3C3uH0qIM5vw+TTh1L7Jl4P5 OPNpAfjTvD1Yag0gmoNd8Efj/BlZFxfoND+qzHUpvgXzUB4tji8HCCohg8/yBIZaLpsI fr1D//keprTuRWUrkp0GMRM4MFXhYzXwplpQmxTr8PJjF5B/0sDakBlNkWs6e9LGOOr1 1bfw== 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=ZD45LoXbrcrVzpGV0Isq71Q0c5O0SCXsJUf29Y1HxOE=; b=oayBQRyHizYOc3j4NB0YZr6kwEu2e3ugqgz8Xo+7xRqQk6rKtG5TR7JSqemvuAWeTn +VO7q84xW8SC5+FJ4mylawiekU/FD5o/voijXRww4bIv95AS2gSs4Qk2I8xWLYxCFJpY 0iq3gBF4DZpVAW/jc41GkOHBm/+iiiuuc9DsFH94cbbFR0Odv8fpK/obIQwV9i/MBDva bDwtETIW2f85O+T3/Dz6C0Mh++vbtqBkR/YHcE7Vl7s98gRtMn97ucM/kh9xPhuL6yzw Vq0UydTYRgoL1W0dIaZPa4eoMJTnL4H7S+msalBzLIJ9XkK0G3zO3Ea5XpXWEJZfL7NB AGnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=HwP+9ch2; 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=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a056a0022cc00b0052b75c32fd2si11313318pfj.48.2022.09.13.01.59.28; Tue, 13 Sep 2022 01:59:40 -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=@microchip.com header.s=mchp header.b=HwP+9ch2; 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=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231264AbiIMHxA (ORCPT + 99 others); Tue, 13 Sep 2022 03:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbiIMHw7 (ORCPT ); Tue, 13 Sep 2022 03:52:59 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E93C9543C5; Tue, 13 Sep 2022 00:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1663055578; x=1694591578; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=knZhzRD1rPrCT9tfB8+UU6FETZqBRyh4NXb907yKBSI=; b=HwP+9ch2y/QSzMs4cO3ITxwdCHVKOfMzO/Gls890JXDbbpdgFdE/6LYz uux3pMvEBelCvi2tX6r0AuECZdOtb8RQQrus2oxeGFuov1gsQAQAJ7dwx TfbTao7ar4i0+pRqRLcnDtDGmzxxRNGFjYAqHM1/waM9xYQqgAB6Gouan oa/U5HM4/i3V2nkz8l3gFw7V+Loryw4EPRYwG3iB1VIsVUFLyoD9/ZQL2 urqgrBrJkMY/oeGiTz0gWhXCE27AXc/7+Up8RjNMhbckpP8yL0+LSMQwZ qTdYitQ3iu33dNFJMgpGPbW9KdylEjSQYLj8DHXAEeLsgakQ2DN+zYbBo w==; X-IronPort-AV: E=Sophos;i="5.93,312,1654585200"; d="scan'208";a="190584736" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Sep 2022 00:52:58 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 13 Sep 2022 00:52:57 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 13 Sep 2022 00:52:57 -0700 Date: Tue, 13 Sep 2022 09:57:19 +0200 From: Horatiu Vultur To: Michael Walle CC: , , , , , Subject: Re: [PATCH] ARM: dts: lan966x: Fix the interrupt number for internal PHYs Message-ID: <20220913075719.y63uvvwzquk435ht@soft-dev3-1.localhost> References: <20220912192629.461452-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: 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_PASS,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 The 09/13/2022 09:18, Michael Walle wrote: > > Hi Horatiu, Hi Walle, > > Am 2022-09-12 21:26, schrieb Horatiu Vultur: > > According to the datasheet the interrupts for internal PHYs are > > 80 and 81. > > Can you point me to that documentation? I have not found yet one on the microchip.com > > Accoring to Table 3-155: Shared Peripheral Interrupts > There are ID47 and ID48 listed as "MIIM controller 0 interrupt". > Whatever that is, because the internal PHYs are on MIIM > controller 1. > > But 80 and 81 would be ID48 and ID49. Did you test the > interrupts? Looking the same table (3-155) in the documentation that I have these interrupts correspond to ID112 and ID113 (Embedded CuPHY port 0/1 interrupt). And because these are shared peripheral interrupts, it is required to substract 32. Therefore I got the numbers 80 and 81. As the internal PHYs don't have yet interrupt support, I have sent a patch here [1] and I have tested it with this. [1] https://www.spinics.net/lists/kernel/msg4511731.html > > -michael > > > Fixes: 6ad69e07def67c ("ARM: dts: lan966x: add MIIM nodes") > > Signed-off-by: Horatiu Vultur > > --- > > arch/arm/boot/dts/lan966x.dtsi | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/boot/dts/lan966x.dtsi > > b/arch/arm/boot/dts/lan966x.dtsi > > index bcb130a2471d..23665a042990 100644 > > --- a/arch/arm/boot/dts/lan966x.dtsi > > +++ b/arch/arm/boot/dts/lan966x.dtsi > > @@ -547,13 +547,13 @@ mdio1: mdio@e200413c { > > > > phy0: ethernet-phy@1 { > > reg = <1>; > > - interrupts = ; > > + interrupts = ; > > status = "disabled"; > > }; > > > > phy1: ethernet-phy@2 { > > reg = <2>; > > - interrupts = ; > > + interrupts = ; > > status = "disabled"; > > }; > > }; -- /Horatiu