Received: by 10.213.65.68 with SMTP id h4csp482147imn; Fri, 16 Mar 2018 09:05:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELuw3U2vACRqd1CT3l2T+1GjlczumCsJgEjs3Ep7syvXNgFmiM/ilVCG8PPpbS4v2R9aP3s0 X-Received: by 10.99.36.193 with SMTP id k184mr1867088pgk.80.1521216330209; Fri, 16 Mar 2018 09:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521216330; cv=none; d=google.com; s=arc-20160816; b=CY2EdUQDctfH+8rXhC/9flAPWXj02KIPdo6doMu7uolFbe+oEc0ph98w2QEfTwHwBr 3Fug2iYPemyal/T3LL/OPfS3lBGLQjjmfGdA/x+sOrNzsaSRm3KjeSQrCIUcwqu5L4mt m29dVQ9VJi3A+5r6HrkAlQZ8MtOwCtGdivfEZoH+zzetc3lqRGVo7YP3+v8vE7mLgKDy Djo4Abc2vUmJJTqN4gVCha0d/gWVIAz2LoYTeupkOH7K5GTSN/OcKS9I8Vkeu6ez/84h U3fYKtzI+DdBqCRHnuMCctN8exc5bhv0Z4x086nNmsecdYO20/D5tlQUDYyJPApyVI/1 jpzg== 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:arc-authentication-results; bh=AoW0yTCqDBGGecxPuHUuqqpLdhhHpDDmhy75CpvSO2U=; b=yRC6oV2mrmbRWPZauRZUEQZIHF9chW9qjr/kX9QJ7J0sVB423ZaKPU1cr56wVpk0i5 HFPt1aG1c9eOSaagmsh+e9tc111dz28Ll1PBAvszKySrLeQ2/DYCVPchMbZNTjChI2aU GDXggOfRueHvlf0wX4/HZHIC8fHW/8ZwIc55r8WwiYOdImPqgH2FUAEI4KPPw6yQ/JN9 TU6jGrzd6rmgBQRtisNHfT61KdcplgXTZgsK5CxLPTw1yVOxdBl03lju7bsyrmEY76Oh g3DqmYKYrxVxmr0yjKNhjM2zkxGTBnIrTYGo7yaKNUSnF8Xtt5vYU6TLa9/AfKhG7Aiq SFhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=ppsyVqcg; 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 h11si5102572pgq.28.2018.03.16.09.05.15; Fri, 16 Mar 2018 09:05:30 -0700 (PDT) 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=@armlinux.org.uk header.s=pandora-2014 header.b=ppsyVqcg; 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 S934706AbeCPQDu (ORCPT + 99 others); Fri, 16 Mar 2018 12:03:50 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:51578 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933119AbeCPQDq (ORCPT ); Fri, 16 Mar 2018 12:03:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=AoW0yTCqDBGGecxPuHUuqqpLdhhHpDDmhy75CpvSO2U=; b=ppsyVqcgSJ/kVNmncPd8FKl0RMiOqSdh5LLBUueEny/1Li4IqDSBBj1CQxrStLXCE26YYtPvERoIjj5diAmxpZ0jQMl+AbsXKvPaPkCeKCxjzzzn/4R44kNAapYoIMvRqtYc92Azzmoe7RW68f6XAmmietTcnSm4DIvcUoFK82o=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:55331) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1ewrpL-0000EU-Un; Fri, 16 Mar 2018 16:03:32 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.76) (envelope-from ) id 1ewrpD-00074U-JY; Fri, 16 Mar 2018 16:03:23 +0000 Date: Fri, 16 Mar 2018 16:03:22 +0000 From: Russell King - ARM Linux To: Antoine Tenart Cc: davem@davemloft.net, kishon@ti.com, gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next 03/10] net: mvpp2: phylink support Message-ID: <20180316160322.GR9418@n2100.armlinux.org.uk> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> <20180316103351.16616-4-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316103351.16616-4-antoine.tenart@bootlin.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 11:33:44AM +0100, Antoine Tenart wrote: > +static void mvpp2_phylink_validate(struct net_device *dev, > + unsigned long *supported, > + struct phylink_link_state *state) > +{ > + __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, }; > + > + phylink_set(mask, Autoneg); > + phylink_set_port_modes(mask); > + phylink_set(mask, Pause); > + phylink_set(mask, Asym_Pause); > + > + phylink_set(mask, 10baseT_Half); > + phylink_set(mask, 10baseT_Full); > + phylink_set(mask, 100baseT_Half); > + phylink_set(mask, 100baseT_Full); > + phylink_set(mask, 1000baseT_Full); > + phylink_set(mask, 1000baseX_Full); AFAICS, the driver (before these patches) does not support 1000baseX as it always clears the MVPP2_GMAC_PORT_TYPE_MASK bit, so adding this mode should be part of the patch adding 1000baseX support. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up