From: Michal Kubiak <michal.kubiak@intel.com>
To: Christian Eggers <ceggers@arri.de>
Cc: Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Vladimir Oltean <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Juergen Beisert <jbe@pengutronix.de>, Stefan Roese <sr@denx.de>,
Juergen Borleis <kernel@pengutronix.de>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net 2/2] dsa: lan9303: consistent naming for PHY address parameter
Date: Wed, 3 Jul 2024 18:08:53 +0200 [thread overview]
Message-ID: <ZoV3ld1UI3lA2/pF@localhost.localdomain> (raw)
In-Reply-To: <20240703145718.19951-2-ceggers@arri.de>
On Wed, Jul 03, 2024 at 04:57:18PM +0200, Christian Eggers wrote:
> Name it 'addr' instead of 'port' or 'phy'.
>
> Signed-off-by: Christian Eggers <ceggers@arri.de>
> ---
> drivers/net/dsa/lan9303_mdio.c | 8 ++++----
> include/linux/dsa/lan9303.h | 4 ++--
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/dsa/lan9303_mdio.c b/drivers/net/dsa/lan9303_mdio.c
> index 167a86f39f27..0ac4857e5ee8 100644
> --- a/drivers/net/dsa/lan9303_mdio.c
> +++ b/drivers/net/dsa/lan9303_mdio.c
> @@ -58,19 +58,19 @@ static int lan9303_mdio_read(void *ctx, uint32_t reg, uint32_t *val)
> return 0;
> }
>
> -static int lan9303_mdio_phy_write(struct lan9303 *chip, int phy, int reg,
> +static int lan9303_mdio_phy_write(struct lan9303 *chip, int addr, int reg,
> u16 val)
> {
> struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);
>
> - return mdiobus_write_nested(sw_dev->device->bus, phy, reg, val);
> + return mdiobus_write_nested(sw_dev->device->bus, addr, reg, val);
> }
>
> -static int lan9303_mdio_phy_read(struct lan9303 *chip, int phy, int reg)
> +static int lan9303_mdio_phy_read(struct lan9303 *chip, int addr, int reg)
> {
> struct lan9303_mdio *sw_dev = dev_get_drvdata(chip->dev);
>
> - return mdiobus_read_nested(sw_dev->device->bus, phy, reg);
> + return mdiobus_read_nested(sw_dev->device->bus, addr, reg);
> }
>
> static const struct lan9303_phy_ops lan9303_mdio_phy_ops = {
> diff --git a/include/linux/dsa/lan9303.h b/include/linux/dsa/lan9303.h
> index b4f22112ba75..3ce7cbcc37a3 100644
> --- a/include/linux/dsa/lan9303.h
> +++ b/include/linux/dsa/lan9303.h
> @@ -5,8 +5,8 @@ struct lan9303;
>
> struct lan9303_phy_ops {
> /* PHY 1 and 2 access*/
> - int (*phy_read)(struct lan9303 *chip, int port, int regnum);
> - int (*phy_write)(struct lan9303 *chip, int port,
> + int (*phy_read)(struct lan9303 *chip, int addr, int regnum);
> + int (*phy_write)(struct lan9303 *chip, int addr,
> int regnum, u16 val);
> };
>
> --
> 2.43.0
>
>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
next prev parent reply other threads:[~2024-07-03 16:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-03 14:57 [PATCH net 1/2] dsa: lan9303: Fix mapping between DSA port number and PHY address Christian Eggers
2024-07-03 14:57 ` [PATCH net 2/2] dsa: lan9303: consistent naming for PHY address parameter Christian Eggers
2024-07-03 16:08 ` Michal Kubiak [this message]
2024-07-04 14:51 ` Florian Fainelli
2024-07-05 2:20 ` Jakub Kicinski
2024-07-08 12:13 ` Vladimir Oltean
2024-07-08 16:33 ` Jakub Kicinski
2024-07-03 16:04 ` [PATCH net 1/2] dsa: lan9303: Fix mapping between DSA port number and PHY address Michal Kubiak
2024-07-04 14:50 ` Florian Fainelli
2024-07-04 17:29 ` Vladimir Oltean
2024-07-05 2:30 ` patchwork-bot+netdevbpf
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=ZoV3ld1UI3lA2/pF@localhost.localdomain \
--to=michal.kubiak@intel.com \
--cc=andrew@lunn.ch \
--cc=ceggers@arri.de \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=jbe@pengutronix.de \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=sr@denx.de \
/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;
as well as URLs for NNTP newsgroup(s).