[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aO_UKlH-Zxl1tq3W@horms.kernel.org>
Date: Wed, 15 Oct 2025 18:04:42 +0100
From: Simon Horman <horms@...nel.org>
To: Buday Csaba <buday.csaba@...lan.hu>
Cc: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Florian Fainelli <f.fainelli@...il.com>, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 4/4] net: mdio: reset PHY before attempting to access
registers in fwnode_mdiobus_register_phy
On Wed, Oct 15, 2025 at 03:45:03PM +0200, Buday Csaba wrote:
...
> drivers/net/mdio/fwnode_mdio.c | 37 +++++++++++++++++++++++++++++++++-
> 1 file changed, 36 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/mdio/fwnode_mdio.c b/drivers/net/mdio/fwnode_mdio.c
> index ba7091518..6987b1a51 100644
> --- a/drivers/net/mdio/fwnode_mdio.c
> +++ b/drivers/net/mdio/fwnode_mdio.c
> @@ -114,6 +114,38 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
> }
> EXPORT_SYMBOL(fwnode_mdiobus_phy_device_register);
>
> +/**
> + * fwnode_reset_phy() - Hard-reset a PHY before registration
Hi Buday,
This is not a full review. But as this is a Kernel doc (a comment in Kernel
doc format), it should also document:
1. The function arguments:
* @bus: ...
* @addr: ...
* @phy_node: ...
2. The return value:
* Returns: ...
Flagged by ./scripts/kernel-doc -none -Wall
Thanks!
> + */
> +static int fwnode_reset_phy(struct mii_bus *bus, u32 addr,
...
--
pw-bot: cr
Powered by blists - more mailing lists