phy: qualcomm: phy-qcom-eusb2-repeater: Zero out untouched tuning regs
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 13 Sep 2023 09:53:25 +0000 (11:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:45 +0000 (17:19 +0000)
commit77f1450464558279a5c22b5ecb41b74a5812b001
tree3b0f91547d67db8a7e481ec3247726685404d60e
parent36cc3bd88636f261eb383e31a36d0bf16e2470ad
phy: qualcomm: phy-qcom-eusb2-repeater: Zero out untouched tuning regs

[ Upstream commit 99a517a582fc1272d1d3cf3b9e671a14d7db77b8 ]

The vendor kernel zeroes out all tuning data outside the init sequence
as part of initialization. Follow suit to avoid UB.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230830-topic-eusb2_override-v2-3-7d8c893d93f6@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c