Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbeACRBX convert rfc822-to-8bit (ORCPT + 1 other); Wed, 3 Jan 2018 12:01:23 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:43752 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750753AbeACRBV (ORCPT ); Wed, 3 Jan 2018 12:01:21 -0500 From: Stefan Chulski To: Russell King - ARM Linux CC: Marcin Wojtas , Thomas Petazzoni , Andrew Lunn , "Florian Fainelli" , Yan Markman , "Jason Cooper" , netdev , "Antoine Tenart" , "linux-kernel@vger.kernel.org" , "kishon@ti.com" , Nadav Haklai , =?iso-8859-1?Q?Miqu=E8l_Raynal?= , =?iso-8859-1?Q?Gregory_Cl=E9ment?= , "David S. Miller" , "linux-arm-kernel@lists.infradead.org" , Sebastian Hesselbarth Subject: RE: [EXT] Re: [PATCH net-next 5/6] arm64: dts: marvell: mcbin: enable the fourth network interface Thread-Topic: [EXT] Re: [PATCH net-next 5/6] arm64: dts: marvell: mcbin: enable the fourth network interface Thread-Index: AQHTf2F55n3e4ALPAEKXWVh4e4VErqNYP5+AgAAm0oCAAFLvgIAAOWqAgAAFUwCAARNcgIAAB20AgAHk6YCAABAVgIACq4KAgAAiZ5CAABHZAIAByDgg Date: Wed, 3 Jan 2018 17:00:47 +0000 Message-ID: <0e95e9b20e2d42bc95e04034bd88e781@IL-EXCH01.marvell.com> References: <20171228100519.GE2626@kwain> <462da70b-ba7d-6299-3e21-b619d3c4c7e6@gmail.com> <20171228182739.GH2626@kwain> <20171228184642.GV10595@n2100.armlinux.org.uk> <20171229113850.GX10595@n2100.armlinux.org.uk> <20171230173157.GC10595@n2100.armlinux.org.uk> <616c2f3b0fe64184bc26d2de43442540@IL-EXCH01.marvell.com> <20180101132520.GB28752@n2100.armlinux.org.uk> In-Reply-To: <20180101132520.GB28752@n2100.armlinux.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.5.102.207] Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-03_12:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801030236 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > > > -----Original Message----- > > > Hi Russell, > > > > > > Indeed. RGMII MAC behaves same way, although it shouldn't be named > > > as 'in- band' to be on par with the specifications. Anyway - this > > > one is rather a stub for being able to work with ACPI, so once the > > > MDIO bus works there, this will be out of any concerns. > > > > Hi Marcin, > > > > This is correct. > > "in-band" supported only for SGMII mode. > > IRQ link interrupt depend on "in-band"' auto negation only if "in-band"' > enabled. > > But IRQ link interrupt could be triggered with "in-band", "out-band" or with > specific fixed speed/duplex/flow_contol. > > Hi Stefan, > > How does this work in RGMII mode - is this handled by the PP2 polling the PHY > to get the speed, duplex and flow control settings? > IRQ interrupt doesn't handled speed, duplex and flow control settings. It's just raised if number of criterions met: 1) Physical signal detected by MAC 2) MAC auto negotiation succeeded(valid only auto negotiation enabled in MAC and "in-band" bypass disabled) So if auto negotiation mechanism disabled in MAC or bypassed, link status would changes to up and IRQ interrupt be triggered. In case of RGMII mode obviously we don't have "in-band" auto negotiation and "out-band" cannot be used in Kernel(due to missed locks). So auto negotiation should be disabled on MAC level and speed/duplex/flow_contol would be negotiate by PHY. phylink/phylib infrastructure should provide speed/duplex/flow_contol(that were agreed between PHY's) to ppv2 driver. Stefan.