Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp411817ybl; Wed, 29 Jan 2020 02:53:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzKABGpWznAKtF4d/7mHXOf1c6xGZrZwSBD5xckjH16DaUrhtMsTMucXt8LDgBpP+DHzyTt X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr18938619otc.24.1580295194677; Wed, 29 Jan 2020 02:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580295194; cv=none; d=google.com; s=arc-20160816; b=dnRPE48BMUkcnM7PMo8kPjwXYi2Lmdm5txg5VAW7lUw4TSubnwM2kYZr+CoeJPIKxC 5JaPdB5eIlU5OhD4UvMn+z7dSi3oJUUe994gBZQEpPHaXQsX/R1XcWgcPZSlvMQSgiSF /6RyYxglk8+l1bAIZozecmTVkFHUFZULuwdvsdjPZjgTUWPpY/bS0FHRUAdAc/J7EOBA bMN3dtb6rFMwYvKXmRt9woRahvB1I9DCMWoqJYk5i1fxoy4xMdkLFUghrVADBiGGNxaZ DkE76e00zHrxzlIIsytTpvDnrqSPp6tj/XpcbL/W+qgq1kGTESHsDc+XQpvPxMrGyykF RlCA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=/wB3culUq1ZzxoL261HKZE6X8nJToZch9UfIjqiMw3g=; b=Pa91wYcP1oMkA4AiA+YTMNOXe55kAwtkKBVumQD7Yo9hh6JkBNG9+rnHWIQZezR5jP rlHIlI6xBFGMqEAh68E+YPTtd/4pu+4YGPXHIGZ1CCVmzHx/KQhCQlrTcgxdndrgW6IL e2NIeWGGasYCRwxudv/7XfT9KgEq4vlnp8udOXah4DYd0wsTXpToFux0AGL86DBq8/zw pkgM9sA7fFo3+yEQ5yj9bfwPDQhLjx1B5a35uAJRAHfzEjk0ghU9RmcM3cPj/xn+aT4V T+cQfK7kQYJUdtJeuhMbHBVeITuQxkdikazVbN9KnT1y3myUP9LBg9Keym6agX92qaH2 8wyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f5si1067669otp.129.2020.01.29.02.53.02; Wed, 29 Jan 2020 02:53:14 -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; 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 S1726590AbgA2Kvg (ORCPT + 99 others); Wed, 29 Jan 2020 05:51:36 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:59218 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbgA2Kvg (ORCPT ); Wed, 29 Jan 2020 05:51:36 -0500 Received: from localhost (unknown [IPv6:2001:982:756:1:57a7:3bfd:5e85:defb]) (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 A09B015C045A5; Wed, 29 Jan 2020 02:51:33 -0800 (PST) Date: Wed, 29 Jan 2020 11:51:31 +0100 (CET) Message-Id: <20200129.115131.1101786807458791369.davem@davemloft.net> To: christophe.roullier@st.com Cc: joabreu@synopsys.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, peppe.cavallaro@st.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org Subject: Re: [PATCH 1/1] net: ethernet: stmmac: simplify phy modes management for stm32 From: David Miller In-Reply-To: <20200128083942.17823-1-christophe.roullier@st.com> References: <20200128083942.17823-1-christophe.roullier@st.com> X-Mailer: Mew version 6.8 on Emacs 26.3 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]); Wed, 29 Jan 2020 02:51:35 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Roullier Date: Tue, 28 Jan 2020 09:39:42 +0100 > No new feature, just to simplify stm32 part to be easier to use. > Add by default all Ethernet clocks in DT, and activate or not in function > of phy mode, clock frequency, if property "st,ext-phyclk" is set or not. > Keep backward compatibility > ----------------------------------------------------------------------- > |PHY_MODE | Normal | PHY wo crystal| PHY wo crystal | No 125Mhz | > | | | 25MHz | 50MHz | from PHY | > ----------------------------------------------------------------------- > | MII | - | eth-ck | n/a | n/a | > | | | st,ext-phyclk | | | > ----------------------------------------------------------------------- > | GMII | - | eth-ck | n/a | n/a | > | | | st,ext-phyclk | | | > ----------------------------------------------------------------------- > | RGMII | - | eth-ck | n/a | eth-ck | > | | | st,ext-phyclk | |st,eth-clk-sel| > | | | | | or | > | | | | | st,ext-phyclk| > ------------------------------------------------------------------------ > | RMII | - | eth-ck | eth-ck | n/a | > | | | st,ext-phyclk | st,eth-ref-clk-sel | | > | | | | or st,ext-phyclk | | > ------------------------------------------------------------------------ > > Signed-off-by: Christophe Roullier If anything, this is more of a cleanup, and therefore only appropriate for net-next when it opens back up.