phy: ti: gmii-sel: add resume support
authorThomas Richard <thomas.richard@bootlin.com>
Thu, 25 Jan 2024 17:17:54 +0000 (18:17 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 7 Feb 2024 14:02:13 +0000 (15:02 +0100)
commitbc25f0b57133ae6157c98e38f0eea7de6dc2a114
tree0c345f1f51663f129aae04193c28453e90f434c5
parent442f34ede7afd23e0fa1d838790f531d5e59d697
phy: ti: gmii-sel: add resume support

The resume callback restores the submode of each PHY.

It uses the submode stored in struct phy_gmii_sel_phy_priv (variable
phy_if_mode). The submode was saved by the set_mode PHY operation.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://lore.kernel.org/r/20240125171754.773909-1-thomas.richard@bootlin.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-gmii-sel.c