Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp801781ybl; Fri, 10 Jan 2020 07:00:12 -0800 (PST) X-Google-Smtp-Source: APXvYqz+Ta7H4QR5earwB/3QkJEasDDE7xE81h+VIwJjvyBR6c++4VRLhsSjMDXPJ4clWo5Atm4G X-Received: by 2002:aca:b608:: with SMTP id g8mr2617264oif.142.1578668412305; Fri, 10 Jan 2020 07:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578668412; cv=none; d=google.com; s=arc-20160816; b=OzhgUw27+PDNYYxHHu3Jf/cU2DL7K/Q+7EfvLmbrU3qph9GStLQHKa0bH7EUoW5gIA BCBO6ZH8ydYeCZZDIUyrunxPtEbJA5L6SpYQT9A+FW3EHHR4ox0G0cdEczrcjNIf5Mvr AduzmIoTI272+hTNp8bY93eORfjcGrVOuJOdqb7J/ahsHrPX4eKPoE55AR/dOmYxVWCX bYIz6es925ZBN79KGhm5HPyfPo9UvziUGAG9oCMsAmQRebfQlv6FFFXLGM43e4nJsot4 K/8tCFDAh/MxWHWMKkaIiq131nNOmOog+xC7uHjPgMckyaa40daU77iEMIjs/PrTzxfq 8Q+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KcB+0FZvEwMSZ71K+kCoZ9X5u6DRQpvD2AQdpGnKqKU=; b=d7ie1qjvOb2Xlj+1mXTr71GCSMUISHkWf2wWrEtdQjycX8TmH0zjDkRBjCtccqmwIh /0z5pmISCE1tgMZdkimDl/eEzR/PkOWk4y5JHhEhoJm3yC5jshN8IrNG1voyFTCwxVRm fnBpexHMi5/jBqVAdkna9VLrAn+iim/rsELrlvx9D/qzKhaY99c4QKeHmEWZe5o/1a6e HUDtl5MXSpp29XoKGhzguUGXUtKfF6bsex8q0DuSjnjJScsfibGTwFc9amV/XctSpkgk 1/CJQLYx//LVlcUdSW49diOCVnaEnByHgO+EDNytGW8usp8yAL6eEbh0gmt5L7ZlzcVO NORg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VSQn0Ttt; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si1448221otk.195.2020.01.10.07.00.00; Fri, 10 Jan 2020 07:00:12 -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 (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=VSQn0Ttt; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728337AbgAJO7I (ORCPT + 99 others); Fri, 10 Jan 2020 09:59:08 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:42890 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbgAJO7I (ORCPT ); Fri, 10 Jan 2020 09:59:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=KcB+0FZvEwMSZ71K+kCoZ9X5u6DRQpvD2AQdpGnKqKU=; b=VSQn0TttzYKM/CdTWxnCb9SAK 98MKbpP1VXCI0Wb/ur9FQV6efmKh98+5V8KPBvOrOfxB7IrgR05Ta3vlsVkBS618/wkR/PkF8y4f3 9rX0rXKOOIac1MIFCacPThgaz4YTylyoGIYqIOzwsN7VjtDB57lpecTA+jJoaRUPUpmBVqjLnuepN yP+TmIC7pPvUW5xAl5K7439M3ROyOI9TB3VDgrofXb84No5s41VboEGKCVgNbHnOSADnNtsrbQ4TV CHjv74Fj6rjhDsWFYY47kXdsbHAN3nkCSjgGVFDIUhyo8I+KhX8UEtmC0LtaI/D1YDzXTd8TXOgSC tbRk2znsQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:53122) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ipvkU-0003i1-OE; Fri, 10 Jan 2020 14:58:54 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1ipvkP-0001aZ-ER; Fri, 10 Jan 2020 14:58:49 +0000 Date: Fri, 10 Jan 2020 14:58:49 +0000 From: Russell King - ARM Linux admin To: Andre Przywara Cc: "David S . Miller" , Radhey Shyam Pandey , Robert Hancock , netdev@vger.kernel.org, Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/14] net: axienet: Fix SGMII support Message-ID: <20200110145849.GC25745@shell.armlinux.org.uk> 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> User-Agent: Mutt/1.10.1 (2018-07-13) 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). I wonder whether you have read the documentation for the phylink mac_config() method (if not, please read it, it contains some very important information about what mac_config() should do.) When operating in SGMII in-band mode, state->speed and state->duplex are not actually valid. You'll probably want to submit a better patch after reading the documentation. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up