Received: by 10.213.65.68 with SMTP id h4csp1359397imn; Mon, 19 Mar 2018 01:46:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELvGOCievFefVUqqn9w02LpCKpuhI4c+8PNwhGgHVKeXGGMF6MpVTTpD8yrVkHLnjOAPn/HA X-Received: by 2002:a17:902:5a4e:: with SMTP id f14-v6mr11449826plm.116.1521449209452; Mon, 19 Mar 2018 01:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521449209; cv=none; d=google.com; s=arc-20160816; b=HJb2lTn5sD27xcMHIIEe00inysxyVoqmJz3H+ciOJepBEY4b4nDUUicObkHKz/hK97 bYUImU6isyb5I9gKvN9rRRUNXV1SM29ZqUyYmFiNiiUyzS3fZYD6NwVzPFGqAbWf38UP maOvRmQVnFP62MGVyF4SDMGUEJdO0cHvIQG7Dt0MljSZi8vr1QwVRVz2MdAfs/dWC9ez ebTIv6oMF8Wjyz1/CNKRuijbSguyUYLtZ3pqgRlITbRgGHmjs96qEiCmsZ8hk+izoA5Z jy7EGRgVJUj3/XcRIXzovaVD8qgW5AGt6/N7PI/YcsU8eMVseOGTfMLC+F0VHfs3ccVs Dwqg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=pQb3msfWPEALXNdaCVW9tuQi2DjgeoV7wrNvcipUKIQ=; b=sQoewDDRNU8igEAFysPIimz3iYwKnDyYlXjRDJDGvSSPGTZu23TbyniPwjllvb/maM l+PfNgacP0rNnja8xspqvOBFIvnon5rZmsyLEEyF+lzQ6Kcy1uFUTVhc49sze+WOfoMJ gBGa46IcceRv1ctEyky3S95CY7fw7fw0DZnukIn5ZRG1GQQzjoU+0qtvFsJLFH00TN01 jH/Ufxpt1gwu9LDZfREsK5jp6HH6Rft2zPw/qsRVn5hvHtOqtFsdjeumgj4gdGG9wMkm T5gp20kX6ZmkCv+2wz5OFJhyiUDugbvnNwreB+K1hD79Ltj1Vgz9QmkuWjbkF/5E5xvA IW2Q== 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 a92-v6si11928300pla.107.2018.03.19.01.46.35; Mon, 19 Mar 2018 01:46:49 -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; 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 S932731AbeCSIp1 (ORCPT + 99 others); Mon, 19 Mar 2018 04:45:27 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49351 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932143AbeCSIpZ (ORCPT ); Mon, 19 Mar 2018 04:45:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 5320C2083D; Mon, 19 Mar 2018 09:45:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 091CF2064B; Mon, 19 Mar 2018 09:45:23 +0100 (CET) Date: Mon, 19 Mar 2018 09:45:23 +0100 From: Antoine Tenart To: Russell King - ARM Linux Cc: Antoine Tenart , 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: <20180319084523.GE4519@kwain> References: <20180316103351.16616-1-antoine.tenart@bootlin.com> <20180316103351.16616-4-antoine.tenart@bootlin.com> <20180316160322.GR9418@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180316160322.GR9418@n2100.armlinux.org.uk> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, On Fri, Mar 16, 2018 at 04:03:22PM +0000, Russell King - ARM Linux wrote: > 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. Right, I'll remove 1000baseX_Full from this patch and only add it in the 1000BaseX support patch. Thanks! Antoine -- Antoine T?nart, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com