linux-yocto/drivers/phy
Dmitry Baryshkov c48f785598 phy: core: don't require set_mode() callback for phy_get_mode() to work
[ Upstream commit d58c04e305 ]

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.

Cc: Damon Ding <damon.ding@rock-chips.com>
Link: https://lore.kernel.org/r/96f8310f-93f1-4bcb-8637-137e1159ff83@rock-chips.com
Tested-by: Damon Ding <damon.ding@rock-chips.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250209-phy-fix-set-moe-v2-1-76e248503856@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:38:02 +02:00
..
allwinner
amlogic
broadcom phy: usb: Fix clock imbalance for suspend/resume 2025-01-23 17:15:57 +01:00
cadence
freescale
hisilicon
ingenic
intel
lantiq
marvell
mediatek
microchip
motorola
mscc
qualcomm
ralink
renesas phy: renesas: rcar-gen3-usb2: Set timing registers only once 2025-05-22 14:08:26 +02:00
rockchip
samsung phy: exynos5-usbdrd: fix MPLL_MULTIPLIER and SSC_REFCLKSEL masks in refclk 2025-03-13 12:51:00 +01:00
socionext
st
tegra phy: Fix error handling in tegra_xusb_port_init 2025-05-22 14:08:25 +02:00
ti
xilinx phy: zynqmp: Enable reference clock correctly 2024-09-04 13:23:42 +02:00
Kconfig
Makefile
phy-can-transceiver.c
phy-core-mipi-dphy.c
phy-core.c phy: core: don't require set_mode() callback for phy_get_mode() to work 2025-06-04 14:38:02 +02:00
phy-lgm-usb.c
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c