Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp764138ybl; Fri, 10 Jan 2020 06:22:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyh/+Y0FadU7eI6pcbdH4xAiIyQ+tsizBd33H5n/MoA0tklFe0g3vCKPELyWWUetuvtKoDo X-Received: by 2002:a05:6830:12da:: with SMTP id a26mr2644484otq.223.1578666128972; Fri, 10 Jan 2020 06:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578666128; cv=none; d=google.com; s=arc-20160816; b=e4SSpqeiPzyqazYv1ZoR4uF+9AfFEoO6GxVtIstFuIgKW1KThsdsw4C/fHxCa0OOAH arsdnmzT7I2KyUNO9Aqd6CQ5icwmhCs7ZsvUQ/5ITXV0E/k6hEEecyuws9JRcfH2eClo Lx5TwIii6M23El3FHAbNRSXvPKQH5mCSBnK5fHFi2kSXBGg4CpeAmMLHEM8Z+y3XgLrO Cf0xPxeMLIYgzQrNXe8ZBYjJ1QZoz9SaYgay9cOmxEqU1obuB3CjSIW0a3DXK2uacP/Y LV1icgd3deUHaM8Dfvk09uK5WksJhBwpalId6ehYjlhplVqasXxaL8Es7hBBkDPHH0S5 XzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=JYkJ1ygniHA35IYbYkMjb/xWpjgKFYDxAE+HVTNDCm4=; b=fPlE+1ZkcIDLyHCVCG5WWnI3DBn7Y15O4PJ+fZz+CitLXpvXlx4g2fxs/VmggX4WTi VFxUagOCv7pQzcqe4gdw6CFZsSFuD75eZW7lESElQ4HZ2WWRCmC4AkSVHsUAhef3d8Yy dk6kl02z5hu8DPkKbNm1fBpih4aLH0r+INQiKRN0rR3D2a1qm2+3SrDrIuFH5yefwKhC Qdq/Bb88rB2n3E6sBW9vBjs/YHZukG7+3yweg69S18TtzPoWNrMiTXhAB2tZHjO9i9bG uviNPuc7bniUAfrhsBTLhtvJq+boqYeD3ufXrG5eWGwlOL1sHFVPK5KuJduXzhpshVzL wEmw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si1470057otp.139.2020.01.10.06.21.56; Fri, 10 Jan 2020 06:22:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbgAJOUm (ORCPT + 99 others); Fri, 10 Jan 2020 09:20:42 -0500 Received: from foss.arm.com ([217.140.110.172]:45250 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727859AbgAJOUm (ORCPT ); Fri, 10 Jan 2020 09:20:42 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D3CC4328; Fri, 10 Jan 2020 06:20:41 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 953CE3F534; Fri, 10 Jan 2020 06:20:40 -0800 (PST) Date: Fri, 10 Jan 2020 14:20:38 +0000 From: Andre Przywara To: Andrew Lunn Cc: "David S . Miller" , Radhey Shyam Pandey , Michal Simek , Robert Hancock , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King Subject: Re: [PATCH 07/14] net: axienet: Fix SGMII support Message-ID: <20200110142038.2ed094ba@donnerap.cambridge.arm.com> In-Reply-To: <20200110140415.GE19739@lunn.ch> References: <20200110115415.75683-1-andre.przywara@arm.com> <20200110115415.75683-8-andre.przywara@arm.com> <20200110140415.GE19739@lunn.ch> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Jan 2020 15:04:15 +0100 Andrew Lunn wrote: Hi Andrew, > On Fri, Jan 10, 2020 at 11:54:08AM +0000, Andre Przywara wrote: > > With SGMII, the MAC and the PHY can negotiate the link speed between > > themselves, without the host needing to mediate between them. > > Linux recognises this, and will call phylink's mac_config with the speed > > member set to SPEED_UNKNOWN (-1). > > Currently the axienet driver will bail out and complain about an > > unsupported link speed. > > > > Teach axienet's mac_config callback to leave the MAC's speed setting > > alone if the requested speed is SPEED_UNKNOWN. > > Hi Andre > > Is there an interrupt when SGMII signals a change in link state? If > so, you should call phylink_mac_change(). Good point. The doc describes a "Auto-Negotiation Complete" interrupt status bit, which signal that " ... auto-negotiation of the SGMII or 1000BASE-X interface has completed." But I have no clue whether that would trigger on a link status *change*. Is there a way to test this without pulling the cable? My board sits in a data centre, so is not easily accessible to me. Cheers, Andre.