From: Manu Gautam Date: Tue, 16 Oct 2018 07:22:07 +0000 (+0530) Subject: phy: qcom-qusb2: Fix HSTX_TRIM tuning with fused value for SDM845 X-Git-Tag: v4.19.10~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4724b50f9e093cfa9bea7caa5f25f00755bcc568;p=thirdparty%2Fkernel%2Fstable.git phy: qcom-qusb2: Fix HSTX_TRIM tuning with fused value for SDM845 [ Upstream commit c88520db18ba0b9a41326c3b8680e7c09eb4c381 ] Tune1 register on sdm845 is used to update HSTX_TRIM with fused setting. Enable same by specifying update_tune1_with_efuse flag for sdm845, otherwise driver ends up programming tune2 register. Fixes: ef17f6e212ca ("phy: qcom-qusb2: Add QUSB2 PHYs support for sdm845") Signed-off-by: Manu Gautam Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd Acked-by: Vivek Gautam Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sasha Levin --- diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c index 9d6c88064158f..69c92843eb3b2 100644 --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c @@ -231,6 +231,7 @@ static const struct qusb2_phy_cfg sdm845_phy_cfg = { .mask_core_ready = CORE_READY_STATUS, .has_pll_override = true, .autoresume_en = BIT(0), + .update_tune1_with_efuse = true, }; static const char * const qusb2_phy_vreg_names[] = {