Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp505477ima; Sat, 20 Oct 2018 12:00:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV63nYLIFSV9lDB6CLJpzk2zD0PLUizXQibzMTiqtTy1fSMGm54N5/c3uJc00YogfaMcq0AD+ X-Received: by 2002:a62:7788:: with SMTP id s130-v6mr39348990pfc.189.1540062033153; Sat, 20 Oct 2018 12:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540062033; cv=none; d=google.com; s=arc-20160816; b=MSUmH2gwqP+kGhES/pSil2glVNXf/J39X+Ix2FEA79TMKQChzNA6gHN11SDLI0jmHT JtuDmfQ2ZpP2BjV3A2r/19nO6CM9o3baBy2agiZOWwudj+EFHFuZiw7CYckR7hQfKMfk KAlJmOTTrFfNKTIcizJCZjEqPwAWq/96HHkuXMnuDYTF3HS0VPKli2ozbdNowq9uRuXe 33sqlDDbzhU96t74oSVhw/zC5ITyDSzaXIXPOUnrcfYfwaZ9PvNohvXwXFOoGx/XCZU8 eCf3YO46q0DVhu8F9+hz1qhWcqdqCHbWchAvs0N6XsafZVEceJsNL68Trj3+u0tlInZu ZyLw== 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=8kmkDCoZmqYKf4VyVB0zMdxW6hEP3IDpzvcuJ/13TBY=; b=LSY1z6Xt0VuHWZMqWqNJIg1y5Q5rhJhQ7RLt2d0LL5cC3ppjJeXgqd3erSAtYgyvi3 NtiEe8DOqLvuSEIg10p/QqT5oVu1zUXgFyUHvA5Oo3UmmGH8kHc6qTq4pRLHLTso00bm /ltG28oOjBh26qQDKA1X4XH7WbljRFHwbj2n3tqkqxexpO58moIaJzQktuguFFqzLVzq v6nH9uy481rRtBPAJiz51Hu0zBwyPW1CbzG/80JQCR4y/eS4f+gZ767AUXT5xXBqMLeu 07wiSTj0+daQECkBtFFzrLPbwH2nuGLhrYaO3/TW3WEwuTeOy5eRWxglT1JRUNnE7vpE wE9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4b3uWapK; 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 r15-v6si28375072pgh.88.2018.10.20.12.00.16; Sat, 20 Oct 2018 12:00:33 -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=pass header.i=@lunn.ch header.s=20171124 header.b=4b3uWapK; 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 S1727657AbeJUDLQ (ORCPT + 99 others); Sat, 20 Oct 2018 23:11:16 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39025 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727413AbeJUDLQ (ORCPT ); Sat, 20 Oct 2018 23:11:16 -0400 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; bh=8kmkDCoZmqYKf4VyVB0zMdxW6hEP3IDpzvcuJ/13TBY=; b=4b3uWapKh+0J4NhEPRkxIfNZCJ2j0HVfp3Lf0gTXZv4Pwhh28q1ODAMKedsGSbYoExpeEzSDyF/Gmaq7G5VQ5Yx8dMm8ZXOdnPAzClfdJStLk7m3o2y5SM6+V2EcfrrGu6nppiRhaNGRdxHrZ8T3JAX7Wrlkclxm+hHrBc5118Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gDwTT-0003LH-A2; Sat, 20 Oct 2018 20:59:47 +0200 Date: Sat, 20 Oct 2018 20:59:47 +0200 From: Andrew Lunn To: Heiner Kallweit Cc: Florian Fainelli , LABBE Corentin , davem@davemloft.net, fugang.duan@nxp.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: ethernet: fec: Add missing SPEED_ Message-ID: <20181020185947.GA6615@lunn.ch> References: <2621cbc9-47ed-ce2a-b7ee-262f17dc138f@gmail.com> <20181018184715.GA31736@Red> <20181018191612.GB31736@Red> <5cb0731b-83c5-5ed5-d022-98f8627d1737@gmail.com> <20181018195909.GA11317@Red> <1b784f69-3ec2-feb2-81e1-9a335cf477c3@gmail.com> <20181020153922.GC1596@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > I dare to dispute here ;) Above code snippet from phy_probe() will > (try to) set also SUPPORTED_Asym_Pause, because phydrv->features > doesn't include any of the two pause flags. > The statement in bcm63xx_config_init you refer to seems to be a > no-op to me therefore. > > I'd say the correct way is to change the PHY config like this: > .features = PHY_BASIC_FEATURES | SUPPORTED_Pause; > It's exactly the use case the code snippet above covers. Yes, you are correct. But it is no longer possible to just do PHY_BASIC_FEATURES | SUPPORTED_Pause because .features is no loner a u32 but a linux bitmap. We need to keep the same idea, allow the PHY driver to indicate it supports a subset of Pause, and if not, enable pause by default. Maybe the easiest way is to move this chunk of code to after the probe function is called. Andrew