Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4233432ybb; Tue, 7 Apr 2020 03:30:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLt6gdcmnhy8P5VZLfsg4vwrOhs9Hd0HebhKonxLfrEVMELnNKe9YBr2bFi3D8jVj8NUpeb X-Received: by 2002:a9d:76c7:: with SMTP id p7mr924847otl.145.1586255434356; Tue, 07 Apr 2020 03:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586255434; cv=none; d=google.com; s=arc-20160816; b=NztyqcG33gZk+z8tLTsxk/K3MoAETeqfuH8PLlFfldOPCFqw0UCeBDjuV5Qg8/M0yX DwB8SF5X0AuG9AMwYDwP3je8mrXEAFkMkNR2gFW37ua7s5Cdxzud7HU7Qa7Iab3dLV8e c3IQj3C/WGXiBJAwC+AbZCOIDEg1FFBr38LwCSDfX1FGxD7VMB+cVhAH+j+dySXWLkGu 5G9qNzsiB1KEwmC9khiVj+3/6e5qvuc4c3XKCW6EgrjXHWhkHKNP+1dDdELMxIgUVGOU P2PCADyuQcF2+UfQVR92AjJTZllquv7BxiprhsIu14M1SCw82/xZx6VYCF9ihWWeAwwk MKsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AwWa4hZedAy71xfM4xj7eO/nATeyQPPMNoUVeME7As0=; b=NsghohZ51SFmCZzO2DfcmRuqKk8cweyiS4NBH0Pk/VLsjEr82HDscZ/qtZ71Gk2P96 jf8R6NiD6czLT+OMEXUz5b9LP8yfNvb0XxNPKKKp6zOenORwxrgi+4omMQxOBRUeLxZu p+cJKwFrPnCS5tJLtFs3pZxJOE+hHOxhel9iuhpF3MYS0k+/eJqd55pAcCKq9N+JjRdh I7BO+xgY3Ugl+W2Ad9Oqt1C5TlouHcjlacdDWU/7E+TaqkgZ/E+izAYbcL2AWnMs2agd 3/Dwv46/VeZWEOWpi3Yltf7c5k3835612avg6rfehPVlasYeqcBgL1gAlwjD9q5HrWbc WvQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FNWYErKb; 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 e22si1069609otp.138.2020.04.07.03.30.22; Tue, 07 Apr 2020 03:30:34 -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=@kernel.org header.s=default header.b=FNWYErKb; 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 S1728869AbgDGKZG (ORCPT + 99 others); Tue, 7 Apr 2020 06:25:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:35468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728852AbgDGKZD (ORCPT ); Tue, 7 Apr 2020 06:25:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E2FB20644; Tue, 7 Apr 2020 10:25:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586255102; bh=MunPn4yar4LQvXOnM4u+z9RULnq2Lbrbew8pDtjZ0zM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FNWYErKb21ktqtnKNi8jWVpgxLNgcH/Wmg/D4J7xfTfmvAiLDBNA2mq9EcKNO/XOu JvClL5T3N/msImmI0NeWwsmZHbf8ZuCw2LLwcL5XlSVQ+W4gizJzWXpPdmJGEYIbq8 X5uG/LAK96Iyll9dbDy6hBuMI/H66mKtBg5WuQ0g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cristian Birsan , Codrin Ciubotariu , "David S. Miller" Subject: [PATCH 5.5 06/46] net: macb: Fix handling of fixed-link node Date: Tue, 7 Apr 2020 12:21:37 +0200 Message-Id: <20200407101500.171147979@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200407101459.502593074@linuxfoundation.org> References: <20200407101459.502593074@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Codrin Ciubotariu [ Upstream commit 79540d133ed6f65a37dacb54b7a704cc8a24c52d ] fixed-link nodes are treated as PHY nodes by of_mdiobus_child_is_phy(). We must check if the interface is a fixed-link before looking up for PHY nodes. Fixes: 7897b071ac3b ("net: macb: convert to phylink") Tested-by: Cristian Birsan Signed-off-by: Codrin Ciubotariu Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/cadence/macb_main.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -685,6 +685,9 @@ static int macb_mdiobus_register(struct { struct device_node *child, *np = bp->pdev->dev.of_node; + if (of_phy_is_fixed_link(np)) + return mdiobus_register(bp->mii_bus); + /* Only create the PHY from the device tree if at least one PHY is * described. Otherwise scan the entire MDIO bus. We do this to support * old device tree that did not follow the best practices and did not