]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: rockchip: usbdp: Only verify link rates/lanes/voltage when the corresponding...
authorAndy Yan <andy.yan@rock-chips.com>
Wed, 12 Mar 2025 08:00:07 +0000 (16:00 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Mar 2025 15:39:34 +0000 (16:39 +0100)
commit969a38be437b68dc9e12e3c3f08911c9f9c8be73
tree937f2cb702389aeb809cb1e31e48d31b9ee391da
parentebf198f17b5ac967db6256f4083bbcbdcc2a3100
phy: rockchip: usbdp: Only verify link rates/lanes/voltage when the corresponding set flags are set

According documentation of phy_configure_opts_dp, at the configure
stage, link rates should only be verify/configure when set_rate
flag is set, the same applies to lanes and voltage.

So do it as the documentation says.
Because voltage setting depends on the lanes, link rates set
previously, so record the link rates and lanes at it's verify stage.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Link: https://lore.kernel.org/r/20250312080041.524546-1-andyshrk@163.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-usbdp.c