phy: qualcomm: eusb2-repeater: Rework init to drop redundant zero-out loop
authorAbel Vesa <abel.vesa@linaro.org>
Thu, 1 Feb 2024 08:39:33 +0000 (10:39 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 7 Feb 2024 10:58:44 +0000 (11:58 +0100)
commit734550d60cdf634299f0eac7f7fe15763ed990bb
treeddd5a5b93724ec972286d15a351bf76819d98b3a
parent95055beb067cb30f626fb10f7019737ca7681df0
phy: qualcomm: eusb2-repeater: Rework init to drop redundant zero-out loop

Instead of incrementing the base of the global reg fields, which renders
the second instance of the repeater broken due to wrong offsets, use
regmap with base and offset. As for zeroing out the rest of the tuning
regs, avoid looping though the table and just use the table as is,
as it is already zero initialized.

Fixes: 99a517a582fc ("phy: qualcomm: phy-qcom-eusb2-repeater: Zero out untouched tuning regs")
Tested-by: Elliot Berman <quic_eberman@quicinc.com> # sm8650-qrd
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240201-phy-qcom-eusb2-repeater-fixes-v4-1-cf18c8cef6d7@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c