android_kernel_motorola_sm6375/drivers/phy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dmitry Baryshkov 3cd53e516f phy: core: don't require set_mode() callback for phy_get_mode() to work
[ Upstream commit d58c04e305afbaa9dda7969151f06c4efe2c98b0 ]

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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Damon Ding <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-06-04 14:32:33 +02:00
..
allwinner
amlogic
broadcom
cadence
freescale
hisilicon
lantiq
marvell
mediatek
motorola
mscc
qualcomm
ralink
renesas
rockchip
samsung
socionext
st
tegra
ti
Kconfig
Makefile
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:32:33 +02:00
phy-lpc18xx-usb-otg.c
phy-pistachio-usb.c
phy-xgene.c