Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp554435ybc; Tue, 12 Nov 2019 05:51:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzZqkYGgFEJ626hRGnOk44Vu/rcAeeg8TvvBvwTVeo6nYkRGmhdAkM5tzn0cHCqx6bYEL04 X-Received: by 2002:a17:906:386:: with SMTP id b6mr27904005eja.148.1573566680300; Tue, 12 Nov 2019 05:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573566680; cv=none; d=google.com; s=arc-20160816; b=aALGbvSFmuc3Yaa3cyzEdP1t8ViiEiyplMJByIiMmIdHKk1RsFfdC0YeDKiFLNw224 eCGCu0UFi8TM4KuaX8ngpF9LP/mzS0LLxm0U0xPLIP4K6ikniLjtpAUUqxJlUAZ121y0 WI8X2i0IEKQw/qnBPZSX6VAU/4Pq7hguGZ/bDZ49l0iE7nAPxzobgTBqBq9iHgeTR33L 4Qzpx98DUdj/C565VYiTN4rHWd3vkFnrSqhSgyJkOn8BNtJ4P2X+UmYJReW/jQ/hy0E2 Al4pGl9NCdO6Iiqop9IHGToZYnH6BgnEaoDkYLtCQBNg/b8VKCpL0rAqL8b+YwE0f1cH hsuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:cc:from:date:content-transfer-encoding:mime-version :subject:to; bh=WE0BYhKNXH05svMGByiCAfotK3lVua2V5SvlSPOzxIk=; b=OmGyfq9Kwky2R0bQ5/tpAcDLGQ90q2+nezMm6tZCp8bw7qPCvPon7aCxIUHzAL0mgn tIi9g8JPdwD562OMfa7W8o39XYmfBUux85EQXVj8wjAZhOh+TAKIlG0TbmhjekeCySQK ys1jhGdctqQOqj+ty7ntcv/+3xipGsm9/XDkm4BC8ziUpHzUQFOEbanBG8mYnCjVisDh WFjJbOQ9Gh2sGfrtI8rKFFtmYyBt0Y8AiIy7hi/EFH978WKQnEDyrdAqLFHI1gjcJKdo xwdvoEl9kG7O9/pOEs5D5RGFAJ/KBTewIicKz4ow9sLAHKvufbi5L3XB3gKNbMUVfdhQ 6Dig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gr10si12031309ejb.414.2019.11.12.05.50.56; Tue, 12 Nov 2019 05:51:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727419AbfKLNtX (ORCPT + 99 others); Tue, 12 Nov 2019 08:49:23 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:50360 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfKLNtW (ORCPT ); Tue, 12 Nov 2019 08:49:22 -0500 Received: from www-data by cheepnis.misterjones.org with local (Exim 4.80) (envelope-from ) id 1iUWXl-00084H-Gl; Tue, 12 Nov 2019 14:49:17 +0100 To: Vladimir Oltean Subject: Re: [PATCH 2/2] ARM: dts: ls1021a-tsn: Use interrupts for the SGMII PHYs X-PHP-Originating-Script: 0:main.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 12 Nov 2019 14:58:38 +0109 From: Marc Zyngier Cc: Rasmus Villemoes , Shawn Guo , Li Yang , Rob Herring , Mark Rutland , , , lkml , netdev , Andrew Lunn In-Reply-To: References: <20191112132010.18274-1-linux@rasmusvillemoes.dk> <20191112132010.18274-3-linux@rasmusvillemoes.dk> Message-ID: <6d4292fcb0cf290837306388bdfe9b0f@www.loen.fr> X-Sender: maz@kernel.org User-Agent: Roundcube Webmail/0.7.2 X-SA-Exim-Connect-IP: X-SA-Exim-Rcpt-To: olteanv@gmail.com, linux@rasmusvillemoes.dk, shawnguo@kernel.org, leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, andrew@lunn.ch X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-11-12 14:53, Vladimir Oltean wrote: > On Tue, 12 Nov 2019 at 15:20, Rasmus Villemoes > wrote: >> >> From: Vladimir Oltean >> >> On the LS1021A-TSN board, the 2 Atheros AR8031 PHYs for eth0 and >> eth1 >> have interrupt lines connected to the shared IRQ2_B LS1021A pin. >> >> Switching to interrupts offloads the PHY library from the task of >> polling the MDIO status and AN registers (1, 4, 5) every second. >> >> Unfortunately, the BCM5464R quad PHY connected to the switch does >> not >> appear to have an interrupt line routed to the SoC. >> >> Signed-off-by: Vladimir Oltean >> Signed-off-by: Rasmus Villemoes >> --- >> arch/arm/boot/dts/ls1021a-tsn.dts | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts >> b/arch/arm/boot/dts/ls1021a-tsn.dts >> index 5b7689094b70..135d36461af4 100644 >> --- a/arch/arm/boot/dts/ls1021a-tsn.dts >> +++ b/arch/arm/boot/dts/ls1021a-tsn.dts >> @@ -203,11 +203,15 @@ >> /* AR8031 */ >> sgmii_phy1: ethernet-phy@1 { >> reg = <0x1>; >> + /* SGMII1_PHY_INT_B: connected to IRQ2, active low >> */ >> + interrupts-extended = <&extirq 2 >> IRQ_TYPE_EDGE_FALLING>; >> }; >> >> /* AR8031 */ >> sgmii_phy2: ethernet-phy@2 { >> reg = <0x2>; >> + /* SGMII2_PHY_INT_B: connected to IRQ2, active low >> */ >> + interrupts-extended = <&extirq 2 >> IRQ_TYPE_EDGE_FALLING>; >> }; >> >> /* BCM5464 quad PHY */ >> -- >> 2.23.0 >> > > +netdev and Andrew for this patch, since the interrupt polarity > caught > his attention in v1. Certainly, the comments and the interrupt specifier do not match. Which one is true? M. -- Jazz is not dead. It just smells funny...