linux/drivers/phy/marvell
Aleksandar Gerasimovski c435e63530 phy: mvebu-cp110-utmi: fix dr_mode property read from dts
[ Upstream commit e2ce913452 ]

The problem with the current implementation is that it does not consider
that the USB controller can have multiple PHY handles with different
arguments count, as for example we have in our cn9131 based platform:
"phys = <&cp0_comphy1 0>, <&cp0_utmi0>;".

In such case calling "of_usb_get_dr_mode_by_phy" with -1 (no phy-cells)
leads to not proper phy detection, taking the "marvell,cp110-utmi-phy"
dts definition we can call the "of_usb_get_dr_mode_by_phy" with 0
(#phy-cells = <0>) and safely look for that phy.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@belden.com>
Link: https://patch.msgid.link/20260106150643.922110-1-aleksandar.gerasimovski@belden.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:25 -05:00
..
Kconfig phy: marvell: phy-mvebu-cp11i-utmi needs USB_COMMON 2021-04-06 10:34:20 +05:30
Makefile drivers: phy: add support for Armada CP110 UTMI PHY 2021-03-30 23:32:53 +05:30
phy-armada38x-comphy.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-armada375-usb2.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-berlin-sata.c phy: constify of_phandle_args in xlate 2024-02-23 17:43:14 +05:30
phy-berlin-usb.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-mmp3-hsic.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mmp3-usb.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mvebu-a3700-comphy.c phy: marvell: a3700-comphy: Fix hardcoded array size 2024-04-05 22:32:00 +05:30
phy-mvebu-a3700-utmi.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-mvebu-cp110-comphy.c phy: marvell: phy-mvebu-cp110-comphy: improve eth_port1 on comphy4 2024-08-04 22:52:11 +05:30
phy-mvebu-cp110-utmi.c phy: mvebu-cp110-utmi: fix dr_mode property read from dts 2026-03-04 07:21:25 -05:00
phy-mvebu-sata.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-pxa-28nm-hsic.c phy: marvell: drop of_match_ptr for ID table 2023-03-20 18:14:59 +05:30
phy-pxa-28nm-usb2.c phy: Explicitly include correct DT includes 2023-07-17 11:52:56 +05:30
phy-pxa-usb.c phy: drop probe registration printks 2026-01-23 11:18:41 +01:00