Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp302336ybl; Tue, 7 Jan 2020 06:26:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyUGXCIfXGnyCMiF3dt05tyrNjxgIe575FV6md4iAeD14LdUHxfiItHxNA6eGBGlKt5ngkK X-Received: by 2002:a9d:7757:: with SMTP id t23mr127233328otl.315.1578407168576; Tue, 07 Jan 2020 06:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578407168; cv=none; d=google.com; s=arc-20160816; b=JF1XkrVv6/NkIUIOE2Vm1YhFlF4bl5ZnnjRTXokrEqFtDb9VCb+EsXAZt322eZzxg0 UqR54Zx+A+jio2GWF/BVBfFwRDKn/9JkmU8yT2amnpKJbooPNWFdSfFI8rAFbik6TsVc SF3EOfRPptgXkN55hnIcmD7V0zBGnF9XhMliDY0YXY4QjjB5+nhNhCtonk+5uWvrYl8s p/7vJPR6YYSzD0CTzUTDJqsS8o0IpGQk/T6Az8QWM6vzQmXrIvv2HoAwPjndtOi9o7zT OQAGP3CHK7/Zr821ZGFMOjooDTHxntQjGhM5rktRXP5waTzrJseFvho3W72nYatTJ9WH rOIw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:from:references:cc:to:subject :dkim-signature; bh=d5jqYXsZf9wizN5r7ku4wxLHhyx6beHVqHA/bzv6tvI=; b=DH5fo+PvH+7UsujDnI2fPiodFRqxPZ6JuYeS4C+U0L35g+ySKBNveNXpGUHEED9Uwb U6WrbAhbzLioWpXmWVqYUn3GWF52yiLIYVuMrDLHaJyGXGA8qP258fZaBfWI13rFrHyX G+pQEfcE7ILD0n5L4bLshrJV7LsNtmn6p0JGjM+U2D/WfJMGRlck9GOcDDcGd4QtA8s0 95OTi38B8C7r8DoUxncERcZKbJWzuIGSGq6Jq5+eZXSQZPuMssXjBxNZN9Ir6alF1gty oSEwh4TGdpFPYRsDjfXn16n7dW9akddqFKtl2Db/MbshviTHswhHOu4jhESbUaFsAj0c Vekw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xd9WLIp8; 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 f9si16055019oti.60.2020.01.07.06.25.52; Tue, 07 Jan 2020 06:26:08 -0800 (PST) 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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xd9WLIp8; 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 S1728336AbgAGOXL (ORCPT + 99 others); Tue, 7 Jan 2020 09:23:11 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38328 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727658AbgAGOXK (ORCPT ); Tue, 7 Jan 2020 09:23:10 -0500 Received: by mail-wr1-f66.google.com with SMTP id y17so54169155wrh.5 for ; Tue, 07 Jan 2020 06:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:autocrypt:organization:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=d5jqYXsZf9wizN5r7ku4wxLHhyx6beHVqHA/bzv6tvI=; b=xd9WLIp8YxUMnKNqK1IuEYjVEIddn0zuUYs1nAuq/h9LAvkiuBcdZbXzKsHghEXkCA 16Slbt0WCTDJ+YFd1NKy1Qb4IbdhWWPpwJ0LwqOdLz+UCPGkGLmrVeuD79E92uJBIt+4 PxUYaUWmorq+oMYOQfnz1BKMFeozJYp3JyocaU19ShbK0ELoWTRPzc9N+lSTfoJ5gEW1 lRfubygykujiRTmMYzWaAZwLMuvfwjZ3lI8DPVDCyZALLyJyXP8Joegb9fVaE6B3W4Vc YWfZo0nmMbU+eXltQOaBbBcTaVGAea8H7IMqdPpcWlRyduwdgEijz8r7WUPxR89SHQZZ rumA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=d5jqYXsZf9wizN5r7ku4wxLHhyx6beHVqHA/bzv6tvI=; b=ZNOFxNQyJXesn8/331fg2GBQBwFa+ESLceiAA+jICGSiXz2osWobzQbjUk397sKZFT Tq85KclpU7L60i/XiE542IPxWa1YQUFBJMNna9yp4OYE/+O3wDxagKwM7S1FGRuERVZs RFvM+2Y4r7uZf48pEsKxV6Qp8liPg/+LjEGSnwT6dJaeSLrhcnuyElkT6j7hJa07qeOo EWMzwgTTVjHJJnj2BB/ECNfRdqoUqCJBBX5KXEDa7F13AgpEOZM8Lyrm0UDJCdq23zM9 vk0qflChIVpZjrS8U8/2JtCwyV/dqAS5W5njbfkFj4QNfgZeBmoesdQmkHHmIt55sW2A zaTA== X-Gm-Message-State: APjAAAVOo9RKUYpwHDPj+4Vk2TkUJ2T0yhmeYrtEJGuiNoLzAHDDKcPs X310+m2sDnzO7rfH4V5DelRJvQ== X-Received: by 2002:adf:8541:: with SMTP id 59mr108223330wrh.307.1578406988025; Tue, 07 Jan 2020 06:23:08 -0800 (PST) Received: from [10.1.2.12] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id v17sm77442183wrt.91.2020.01.07.06.23.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jan 2020 06:23:07 -0800 (PST) Subject: Re: [PATCH net] net: stmmac: Fixed link does not need MDIO Bus To: Jose Abreu , netdev@vger.kernel.org Cc: Joao Pinto , Alexandre Torgue , "kernelci . org bot" , Sriram Dash , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Florian Fainelli , Maxime Coquelin , Giuseppe Cavallaro , "David S. Miller" , linux-arm-kernel@lists.infradead.org, Heiko Stuebner References: <5764e60da6d3af7e76c30f63b07f1a12b4787918.1578400471.git.Jose.Abreu@synopsys.com> From: Neil Armstrong Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZntB8WrBTtkAZfZbTF7850uwd3eU5cN/7N1Q6g0JQihE7w4GlIkE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t3Eo561r6pSHr5JGHe8hwBQUcNPd/9l 2ynP57YTSE9XaGJK8gIuTXWo7pzIkTXfN40Wh5jeCCspj4jNsWiYhljjIbrEj300g8RUT2U0 FcEoiV7AjJWWQ5pi8lZJX6nmB0lc69Jw03V6mblgeZ/1oTZmOepkagwy2zLDXxihf0GowUif GphBDeP8elWBNK+ajl5rmpAMNRoKxpN/xR4NzBg62AjyIvigdywa1RehSTfccQARAQABwsBf BBgBAgAJBQJNWQbPAhsMAAoJEBaat7Gkz/iuteIH+wZuRDqK0ysAh+czshtG6JJlLW6eXJJR Vi7dIPpgFic2LcbkSlvB8E25Pcfz/+tW+04Urg4PxxFiTFdFCZO+prfd4Mge7/OvUcwoSub7 ZIPo8726ZF5/xXzajahoIu9/hZ4iywWPAHRvprXaim5E/vKjcTeBMJIqZtS4u/UK3EpAX59R XVxVpM8zJPbk535ELUr6I5HQXnihQm8l6rt9TNuf8p2WEDxc8bPAZHLjNyw9a/CdeB97m2Tr zR8QplXA5kogS4kLe/7/JmlDMO8Zgm9vKLHSUeesLOrjdZ59EcjldNNBszRZQgEhwaarfz46 BSwxi7g3Mu7u5kUByanqHyA= Organization: Baylibre Message-ID: <437a073e-1610-ffa2-891c-692bea3541fd@baylibre.com> Date: Tue, 7 Jan 2020 15:23:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <5764e60da6d3af7e76c30f63b07f1a12b4787918.1578400471.git.Jose.Abreu@synopsys.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2020 13:35, Jose Abreu wrote: > When using fixed link we don't need the MDIO bus support. > > Reported-by: Heiko Stuebner > Reported-by: kernelci.org bot > Fixes: d3e014ec7d5e ("net: stmmac: platform: Fix MDIO init for platforms without PHY") > Signed-off-by: Jose Abreu > > --- > Cc: Giuseppe Cavallaro > Cc: Alexandre Torgue > Cc: Jose Abreu > Cc: "David S. Miller" > Cc: Maxime Coquelin > Cc: netdev@vger.kernel.org > Cc: linux-stm32@st-md-mailman.stormreply.com > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: Heiko Stuebner > Cc: kernelci.org bot > Cc: Florian Fainelli > Cc: Sriram Dash > --- > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > index cc8d7e7bf9ac..4775f49d7f3b 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c > @@ -320,7 +320,7 @@ static int stmmac_mtl_setup(struct platform_device *pdev, > static int stmmac_dt_phy(struct plat_stmmacenet_data *plat, > struct device_node *np, struct device *dev) > { > - bool mdio = false; > + bool mdio = !of_phy_is_fixed_link(np); > static const struct of_device_id need_mdio_ids[] = { > { .compatible = "snps,dwc-qos-ethernet-4.10" }, > {}, > Acked-by: Neil Armstrong