Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp746293ybl; Fri, 10 Jan 2020 06:06:48 -0800 (PST) X-Google-Smtp-Source: APXvYqxRVcPeNIt33oh2PslNWP3X1pkTiBQsY8D/fOyH0o4KgKwKPrnxEGPxI8wB/JdyZXqTt3WF X-Received: by 2002:aca:72d0:: with SMTP id p199mr2463268oic.40.1578665208489; Fri, 10 Jan 2020 06:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578665208; cv=none; d=google.com; s=arc-20160816; b=CU5FT52F4EzP7QfuTc2LXi6xwqQ4hYpjIWjUBVgISl1ij/Ko+EASrhUuZcimYg0DBt o7xAj6KAjNDgQpWtxNUle8KTCekjF71lLe8/Zet1nUqf0bfuP8lZSEl4ekIv9PcR0Cys clFIo4Va+VuMvhkKU6Xli3CEvVJtN2LeYugz8trAtzgTPG2/XNmuvWvZIfxYj5WNFOmW bEbpz/0FJo5ZdsGUJeoxeV/cCMVL8r9oAqBQWGgO2HwvwOFFnmozTwEWKDeK1J1l6xF5 Daz0YbsmJ/wkNzBQBfjlqfu+HWxwnHYSU7mrfjlHV88rDHP+ze9kse3jzQuUEfzdF0r7 Yv9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nFFRscT+IEUSdIlTKVGLh7JmrVqmM9hERdN1OMh753E=; b=AaiCWlaWKfk1WFWWtDsnxu4IdMBUBswzXprKW+6TZINmVpuqovrkUNtoB1lEtS7XoQ dfbzSCjlPsdQDQAAiMfevhHZKt6ME7U054K33xcKJI98qU9UmCOZ37Ym3DpckR/Tqv9G GDfVHaR5GrjYgqN0hQU62oHxqseEFbh0RRdJi4uY+s2rTjb+5V9pEeWKEd9Qn8E+MHR3 9hATQhpeskDbTkf6FeeFn0ChRWbhreLzTS3nRltTBgA8uFtr36joTRtjRz3I1PU1Tg9t HjsajYm/peqlK3BubmeOPavNd/GuAWQJ0MuQkoPsSjYEP8S8UypMBQ797fP3iwZzODa3 kOsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=sqPc5dtb; 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 q17si1744102otr.219.2020.01.10.06.06.29; Fri, 10 Jan 2020 06:06:48 -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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=sqPc5dtb; 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 S1728034AbgAJOEa (ORCPT + 99 others); Fri, 10 Jan 2020 09:04:30 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:59508 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbgAJOEa (ORCPT ); Fri, 10 Jan 2020 09:04:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nFFRscT+IEUSdIlTKVGLh7JmrVqmM9hERdN1OMh753E=; b=sqPc5dtbH/Pa0ldbgijbqpyiA2 NFyuGhgwcNaakqdbI7Fre08QK1jIO5X0Eetn3g2gL3g8c+mIthPeKgpbWxx1Hqutbz18+SJyLrYTQ 0TU7jTBOx6kkKbB0aaPXW5acQkYmvdtR41mJm+BcnhG5LwDyOp2E0+d5HH/gZ4w5M0UQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1iputb-0007IB-O4; Fri, 10 Jan 2020 15:04:15 +0100 Date: Fri, 10 Jan 2020 15:04:15 +0100 From: Andrew Lunn To: Andre Przywara 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: <20200110140415.GE19739@lunn.ch> References: <20200110115415.75683-1-andre.przywara@arm.com> <20200110115415.75683-8-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110115415.75683-8-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Andrew