Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp571282pxf; Thu, 11 Mar 2021 09:39:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkS0nqlYYTarvEvbe8wdpWVOd7aTkvNKyYWhK6H9ZlAURinVPJNTZyCbGI7VbMBxFCknNs X-Received: by 2002:aa7:d316:: with SMTP id p22mr9379422edq.107.1615484390572; Thu, 11 Mar 2021 09:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615484390; cv=none; d=google.com; s=arc-20160816; b=t0OaGMPzh6Kn7jp5foImsyUH1X0gVeNb45Z5AupnAngZj/2kuYiTsdJKlistreqthN mq3KcE7YdqZz3TodSL5W5931xZpbSJsGyyyNAKQYTO2QZJv46gLebPE2+yNwW5/0Ftjk ZJwMtyyzxSPyJv+5qPlvHW5a0sEEZUzWqWDIV2OOOFFrxc6bHxJOH7JN6MpBWadfAEC6 2ngg5C7PgLTuH/V0aaPUzKsH/iumSxcbu1GZSydK4u4JVMiKWi+jTMhB1fPx5Ch61D9C MEn9BRZwOAHobEA5GbzOq+fvhl4YYvH48YgF4uC+RaiWAS8+/g/p4ovjoVF5cnxKScpn yVyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=59cppTA8RCoxNYytIi5vt6luu1HoErsyh7vkFsIDPA4=; b=tez/rqxpG3zxRuhvfdmwRe2W7ozCXaeAXiWr2Bu62BUhppa7QnWzj1mbffQ94b/PIU ONmNCe6GgnN7UzY7qYwJ0wgnSuqPUHVZrv+xhY9klHW4V6kWm7cEHOoMe7lw1V2jeiwK 8m0MEHlL7C2xnV7Ypt2pqOeVKwaVtoetS3b/atO/G9ByfSvWN6yAazBmzouFSzrJ3dwN oAOAHDuAsNoYnAs1xiL6KAcjSGUibh3vZL5mzda0P1vbV43dtCUfRZ2r+1M2TFJOvV4Y kt8Xk6ttrPm856xB2ejyaJQO5jnWrJ4QOWEbezGhFmX5ENlZv6Kti34tZpaJHdz+i6J3 pKWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si2417711edr.358.2021.03.11.09.39.27; Thu, 11 Mar 2021 09:39:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbhCKRfl (ORCPT + 99 others); Thu, 11 Mar 2021 12:35:41 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:52346 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbhCKRfL (ORCPT ); Thu, 11 Mar 2021 12:35:11 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lKPDB-00AOKn-6Q; Thu, 11 Mar 2021 18:35:01 +0100 Date: Thu, 11 Mar 2021 18:35:01 +0100 From: Andrew Lunn To: Ilya Lipnitskiy Cc: Sean Wang , Landen Chao , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Matthias Brugger , Philipp Zabel , Russell King , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] net: dsa: mt7530: use core_write wrapper Message-ID: References: <20210310211420.649985-1-ilya.lipnitskiy@gmail.com> <20210310211420.649985-2-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210310211420.649985-2-ilya.lipnitskiy@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 01:14:19PM -0800, Ilya Lipnitskiy wrote: > When disabling PLL, there is no need to call core_write_mmd_indirect > directly, use the core_write wrapper instead like the rest of the code > in the function does. This change helps with consistency and > readability. > > Signed-off-by: Ilya Lipnitskiy > --- > drivers/net/dsa/mt7530.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index e785f80f966b..b106ea816778 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -445,10 +445,7 @@ mt7530_pad_clk_setup(struct dsa_switch *ds, phy_interface_t interface) > * provide our own core_write_mmd_indirect to complete this > * function. > */ > - core_write_mmd_indirect(priv, > - CORE_GSWPLL_GRP1, > - MDIO_MMD_VEND2, > - 0); > + core_write(priv, CORE_GSWPLL_GRP1, 0); /* Disable PLL, since phy_device has not yet been created * provided for phy_[read,write]_mmd_indirect is called, we * provide our own core_write_mmd_indirect to complete this * function. */ core_write_mmd_indirect(priv, CORE_GSWPLL_GRP1, MDIO_MMD_VEND2, 0); What about the comment? Seems odd to reference core_write_mmd_indirect() when it is not actually called here after your change. Andrew