Re: [PATCH net-next v3 1/2] net: phy: motorcomm: add led_brightness_set for YT8521

From: Chukun Pan

Date: Fri Dec 04 2026 - 01:53:13 EST


Hi,

> [Severity: High]
> Is the MDIO bus lock held on this path? ytphy_read_ext() and
> ytphy_write_ext() are both documented with:
>
> * NOTE:The caller must have taken the MDIO bus lock.

> [Severity: High]
> This is a pre-existing issue and was not introduced by this patch. The
> existing LED hw_control callbacks also access the extended registers
> without the MDIO bus lock.

Actual testing shows that MDIO bus lock is not needed here.
During testing, this error was only triggered when the
LED0/LED1/LED2_CFG registers were written simultaneously.
The current code only writes to one register at a time.