From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Michael Klein <michael@fossekall.de>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [net-next,v2,1/2] net: phy: realtek: Clean up RTL8211E ExtPage access
Date: Fri, 14 Mar 2025 19:00:56 +0100 [thread overview]
Message-ID: <20250314190056.739f4d81@fedora-2.home> (raw)
In-Reply-To: <20250314111545.84350-2-michael@fossekall.de>
Hi Michael,
On Fri, 14 Mar 2025 12:15:44 +0100
Michael Klein <michael@fossekall.de> wrote:
> - Factor out RTL8211E extension page access code to
> rtl8211e_modify_ext_page()/rtl8211e_read_ext_page() and add some
> related #define:s
> - Group RTL8211E_* and RTL8211F_* #define:s
> - Clean up rtl8211e_config_init()
>
> Signed-off-by: Michael Klein <michael@fossekall.de>
> ---
[...]
> +static int rtl8211e_read_ext_page(struct phy_device *phydev, u16 ext_page,
> + u32 regnum)
> +{
> + int oldpage, ret = 0;
> +
> + oldpage = phy_select_page(phydev, RTL8211E_SET_EXT_PAGE);
> + if (oldpage >= 0) {
> + ret = __phy_write(phydev, RTL8211E_EXT_PAGE_SELECT, ext_page);
> + if (!ret)
> + ret = __phy_read(phydev, regnum);
> + }
> +
> + return phy_restore_page(phydev, oldpage, ret);
> +}
You're not using that function at all in this patch, so this patch
compiles with a warning for an unused function.
I suggest you move that to patch 2, which is the first user for
rtl8211e_read_ext_page()
Thanks,
Maxime
next prev parent reply other threads:[~2025-03-14 18:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250314111545.84350-1-michael@fossekall.de>
2025-03-14 11:15 ` [net-next,v2,1/2] net: phy: realtek: Clean up RTL8211E ExtPage access Michael Klein
2025-03-14 18:00 ` Maxime Chevallier [this message]
2025-03-14 11:15 ` [net-next,v2,2/2] net: phy: realtek: Add support for PHY LEDs on RTL8211E Michael Klein
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=20250314190056.739f4d81@fedora-2.home \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=michael@fossekall.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox