Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcd4f1a

Browse files
right-0903gregkh
authored andcommitted
phy: qualcomm: phy-qcom-eusb2-repeater: fix override properties
[ Upstream commit 942e47a ] property "qcom,tune-usb2-preem" is for EUSB2_TUNE_USB2_PREEM property "qcom,tune-usb2-amplitude" is for EUSB2_TUNE_IUSB2 The downstream correspondence is as follows: EUSB2_TUNE_USB2_PREEM: Tx pre-emphasis tuning EUSB2_TUNE_IUSB2: HS trasmit amplitude EUSB2_TUNE_SQUELCH_U: Squelch detection threshold EUSB2_TUNE_HSDISC: HS disconnect threshold EUSB2_TUNE_EUSB_SLEW: slew rate Fixes: 31bc94d ("phy: qualcomm: phy-qcom-eusb2-repeater: Don't zero-out registers") Signed-off-by: Pengyu Luo <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Reviewed-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent dac341e commit fcd4f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ static int eusb2_repeater_init(struct phy *phy)
127127
rptr->cfg->init_tbl[i].value);
128128

129129
/* Override registers from devicetree values */
130-
if (!of_property_read_u8(np, "qcom,tune-usb2-amplitude", &val))
130+
if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val))
131131
regmap_write(regmap, base + EUSB2_TUNE_USB2_PREEM, val);
132132

133133
if (!of_property_read_u8(np, "qcom,tune-usb2-disc-thres", &val))
134134
regmap_write(regmap, base + EUSB2_TUNE_HSDISC, val);
135135

136-
if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val))
136+
if (!of_property_read_u8(np, "qcom,tune-usb2-amplitude", &val))
137137
regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val);
138138

139139
/* Wait for status OK */

0 commit comments

Comments
 (0)