Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Artem Shimko
Tue, 17 Nov 2026 11:44
[PATCH net-next v2 1/4] net: phy: dap8211r: fix kernel-doc comments for extended register helpers
Author: Artem Shimko
Date: Tue, 17 Nov 2026 11:44
Date: Tue, 17 Nov 2026 11:44
35 lines
12109 bytes
12109 bytes
The kernel-doc comments for dap8211r_read_ext() and dap8211r_modify_ext()
incorrectly state that the caller must hold the MDIO bus lock.
Remove the misleading sentence from both comments since the functions
lock MDIO internally by themselves.
Fixes: d90265e75584d ("net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver")
Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
---
drivers/net/phy/dap8211r.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/phy/dap8211r.c b/drivers/net/phy/dap8211r.c
index 0bf770f8ebbb..1fe20efd394d 100644
--- a/drivers/net/phy/dap8211r.c
+++ b/drivers/net/phy/dap8211r.c
@@ -69,7 +69,6 @@ static const int dap8211r_internal_delay[] = {0, 150, 300, 450, 600, 750, 900,
* @reg: Extended register address
*
* Reads a PHY extended register using the indirect access method.
- * The caller must hold the MDIO bus lock.
*
* Return: Register value on success, or negative error code
*/
@@ -97,7 +96,6 @@ static int dap8211r_read_ext(struct phy_device *phydev, u16 reg)
*
* Modifies a PHY extended register using the indirect access method.
* New value = (old value & ~mask) | set.
- * The caller must hold the MDIO bus lock.
*
* Return: 0 on success, or negative error code
*/
--
2.43.0
Re: [PATCH net-next v2 1/4] net: phy: dap8211r: fix kernel-doc comments for extended register helpers
Author: Andrew Lunn
Date: Tue, 17 Nov 2026 13:29
Date: Tue, 17 Nov 2026 13:29
14 lines
8905 bytes
8905 bytes
On Tue, Nov 17, 2026 at 02:44:27PM +0300, Artem Shimko wrote:
> The kernel-doc comments for dap8211r_read_ext() and dap8211r_modify_ext()
> incorrectly state that the caller must hold the MDIO bus lock.
>
> Remove the misleading sentence from both comments since the functions
> lock MDIO internally by themselves.
>
> Fixes: d90265e75584d ("net: phy: add DAPU Telecom DAP8211R(I) Gigabit Ethernet PHY driver")
> Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads