From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E570C43381 for ; Mon, 25 Feb 2019 06:29:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 414582087C for ; Mon, 25 Feb 2019 06:29:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726965AbfBYG3i (ORCPT ); Mon, 25 Feb 2019 01:29:38 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:35860 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726576AbfBYG3i (ORCPT ); Mon, 25 Feb 2019 01:29:38 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id AA4EE14E0953A; Sun, 24 Feb 2019 22:29:37 -0800 (PST) Date: Sun, 24 Feb 2019 22:29:37 -0800 (PST) Message-Id: <20190224.222937.2235322336137095381.davem@davemloft.net> To: hkallweit1@gmail.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, netdev@vger.kernel.org Subject: Re: [PATCH net] net: phy: fix reading fixed phy status From: David Miller In-Reply-To: <7ab8732d-bcc1-cc49-4bc8-34826e78038b@gmail.com> References: <7ab8732d-bcc1-cc49-4bc8-34826e78038b@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 24 Feb 2019 22:29:37 -0800 (PST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Heiner Kallweit Date: Sun, 24 Feb 2019 18:01:18 +0100 > With the switch to phy_resolve_aneg_linkmode() we don't read from the > chip any longer what is advertised but use phydev->advertising directly. > For a fixed phy however this bitmap is empty so far, what results in > no common mode being found. This breaks DSA. Fix this by advertising > everything that is supported. For a normal phy this done by phy_probe(). > > Fixes: 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in genphy_read_status") > Signed-off-by: Heiner Kallweit Applied to net-next. Let me know if I got this wrong.