From: Jakub Kicinski <kuba@kernel.org>
To: Nate Drude <nate.d@variscite.com>
Cc: netdev@vger.kernel.org, michael.hennerich@analog.com,
eran.m@variscite.com
Subject: Re: [PATCH 2/2] net: phy: adin: add adi,clk_rcvr_125_en property
Date: Mon, 2 May 2022 15:03:05 -0700 [thread overview]
Message-ID: <20220502150305.6f71f0d4@kernel.org> (raw)
In-Reply-To: <20220429184432.962738-2-nate.d@variscite.com>
On Fri, 29 Apr 2022 13:44:32 -0500 Nate Drude wrote:
> + if (of_property_read_bool(of_node, "adi,clk_rcvr_125_en")) {
> + reg = phy_read_mmd(phydev, MDIO_MMD_VEND1, ADIN1300_GE_CLK_CFG);
> +
> + reg |= ADIN1300_GE_CLK_RCVR_125_EN;
> +
> + phydev_dbg(phydev, "%s: ADIN1300_GE_CLK_CFG = %x\n",
> + __func__, reg);
> +
> + reg = phy_write_mmd(phydev, MDIO_MMD_VEND1,
> + ADIN1300_GE_CLK_CFG, reg);
Looks like you could use phy_modify_mmd() instead.
The print could be removed IMHO, it adds little value. All it does is
says the register write was performed, not even old an new values.
Please CC the folks and list pointed out by Paolo and Josua from the
thread pointed out by Andrew.
Please tag v2 as [PATCH net-next v2] in the subject.
Thanks!
next prev parent reply other threads:[~2022-05-02 22:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 18:44 [PATCH 1/2] dt-bindings: net: adin: document adi,clk_rcvr_125_en property Nate Drude
2022-04-29 18:44 ` [PATCH 2/2] net: phy: adin: add " Nate Drude
2022-05-02 22:03 ` Jakub Kicinski [this message]
2022-04-29 22:37 ` [PATCH 1/2] dt-bindings: net: adin: document " Andrew Lunn
2022-05-02 9:03 ` Paolo Abeni
2022-05-03 11:50 ` Krzysztof Kozlowski
2022-05-05 12:40 ` Nate Drude
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220502150305.6f71f0d4@kernel.org \
--to=kuba@kernel.org \
--cc=eran.m@variscite.com \
--cc=michael.hennerich@analog.com \
--cc=nate.d@variscite.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.