Re: [PATCH net-next 2/3] net: phy: dap8211r: add extended register write helper

From: Andrew Lunn

Date: Fri Nov 13 2026 - 17:04:45 EST


> + * The caller must hold the MDIO bus lock.
> + *
> + * Return: 0 on success, or negative error code
> + */
> +static int dap8211r_write_ext(struct phy_device *phydev, u16 reg, u16 data)
> +{
> + int ret;
> +
> + phy_lock_mdio_bus(phydev);

How does this not deadlock, if the caller is already holding the MDIO
bus lock, as commented on above?

Andrew