Re: [PATCH v2] phy: core: don't require set_mode() callback for phy_get_mode() to work

From: Vinod Koul
Date: Thu Feb 13 2025 - 13:17:24 EST



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