[PATCH v2] phy: core: don't require set_mode() callback for phy_get_mode() to work
Vinod Koul
vkoul at kernel.org
Thu Feb 13 10:17:02 PST 2025
On Sun, 09 Feb 2025 14:31:45 +0200, Dmitry Baryshkov wrote:
> As reported by Damon Ding, the phy_get_mode() call doesn't work as
> expected unless the PHY driver has a .set_mode() call. This prompts PHY
> drivers to have empty stubs for .set_mode() for the sake of being able
> to get the mode.
>
> Make .set_mode() callback truly optional and update PHY's mode even if
> it there is none.
>
> [...]
Applied, thanks!
[1/1] phy: core: don't require set_mode() callback for phy_get_mode() to work
commit: d58c04e305afbaa9dda7969151f06c4efe2c98b0
Best regards,
--
~Vinod
More information about the linux-phy
mailing list