Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp373047ima; Sat, 20 Oct 2018 09:06:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV63+vu47D0kmX7DRt8kD4uZC24hiLubRthfKGxg/xQB/Q+mb2IKYGu6weAod5svLuiro3NdX X-Received: by 2002:a62:90db:: with SMTP id q88-v6mr38374393pfk.98.1540051560329; Sat, 20 Oct 2018 09:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540051560; cv=none; d=google.com; s=arc-20160816; b=jmApVADWKXMadnx0nctolDKqlwoHBOTIRkCHD8QGNDjP/QoEmhBFkMZovBtYw/fpof Z/yH9ep4h24KN58ErSlHUHfJnVgUv/lIfat91T9g0JePM/XcH9d3iOXgMltZCNWGSLEr unHLPdvP/78GeRBiGFmJJrDwCT9nqBZ1jXk5SJ3erZpvU/SIff3E2O+kAtk3/5cz43oU 2ZQZCO+zS6DcU9P3TMRfKC3lSEL3eMr0R16d+IjTcIuWhSSmqIPPhRthtrDKKnVeCfzN k/YV2VR2s6DnvBjjtbtMpTx/rN0P+KWSQ0Ofbv+/zR6Gvxyrfqh8ySGJhFvxnQJA6KVn QoYQ== 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=GXeebIyE2oxIsnleGqwhoifoN9T9343TSLy0dj5M6uw=; b=oNJQC47jpJQ9i0/s5ufApYRzUcsTL/U5ASW2H8cNYaRyLKLhjhr8RE6j0r/7oG3TQX 7GUsl3OHcgaCuODeojbYqCpj08a7Unpznz9g/I0Lh9hgP8ZvwrByMc4pWeBq4eFfTNWg 7FdhVwxRWNtrheM3GISOglTz6CPtGhAFj7NNR86SPFhPLBnxCEmlvsGJMmTJfTPgYpNy lQbBDjZFnvVL6qXY4HMf8Gr5StFGCKxDvmnmllbbZPdHXupAzI5pvwXO7f2RWyoYDo5P TqU8K2giGpizgrODda5S1Ul1vePadb6XVLqFHG0xbxlNqNOfTcEqip6gwWOJYNlu7yJX G3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EhlcgmKL; 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 l91-v6si28759669plb.315.2018.10.20.09.05.42; Sat, 20 Oct 2018 09:06:00 -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=EhlcgmKL; 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 S1727611AbeJUAQN (ORCPT + 99 others); Sat, 20 Oct 2018 20:16:13 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38988 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727413AbeJUAQN (ORCPT ); Sat, 20 Oct 2018 20:16:13 -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=GXeebIyE2oxIsnleGqwhoifoN9T9343TSLy0dj5M6uw=; b=EhlcgmKL5eTn8aFhrQCro5D5f3rwDf4byfB49Gyxi8xNDEITwHw1mDpV91Hgmb6I7DY2zbVfOKQG1ggCqeAuL+XZALpJbi0pHjF2JsdDYcYxCJVrw7gePuvJsQ83Qp8Ff966VQeLATaxUiSJipPkYzuMfZnGVS54epFl1W1/6qc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gDtLW-0000vy-13; Sat, 20 Oct 2018 17:39:22 +0200 Date: Sat, 20 Oct 2018 17:39:22 +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: <20181020153922.GC1596@lunn.ch> References: <1539875100-11121-1-git-send-email-clabbe@baylibre.com> <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> 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 have patched by adding: > >> phy_remove_link_mode(phy_dev, ETHTOOL_LINK_MODE_Asym_Pause_BIT); > > Instead of programmatically removing the feature bit it should be > possible to do this in the PHY driver configuration. See also > this part of phy_probe(). > > if (phydrv->features & (SUPPORTED_Pause | SUPPORTED_Asym_Pause)) { > phydev->supported &= ~(SUPPORTED_Pause | SUPPORTED_Asym_Pause); > phydev->supported |= phydrv->features & > (SUPPORTED_Pause | SUPPORTED_Asym_Pause); > } else { > phydev->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; > } Sorry for the late reply. Been on vacation. I need to check the datasheet, but it seems like the KSZ9021 does not support asym pause. Using the above code is the correct way to solve this problem. Look at the bcm63xx.c:bcm63xx_config_init() which does this. I will cook up a patch. Andrew