linux/drivers/phy/marvell
Aleksandar Gerasimovski c3be09c3c8 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:20:36 -05:00
..
Kconfig phy: marvell: Do not enable by default during compile testing 2025-04-11 12:48:34 +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: Fix spelling mistake "exlicitly" -> "explicitly" 2024-12-04 19:41:59 +05:30
phy-mvebu-cp110-utmi.c phy: mvebu-cp110-utmi: fix dr_mode property read from dts 2026-03-04 07:20:36 -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 2025-06-16 22:54:21 +05:30