Skip to content

Commit 940797d

Browse files
committed
Merge branch 'fixes' into next
This brings in the Qcom qmp patch fixes into next as well
2 parents afa9294 + 2a88118 commit 940797d

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

drivers/phy/amlogic/phy-meson-g12a-mipi-dphy-analog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int phy_g12a_mipi_dphy_analog_power_on(struct phy *phy)
7070
HHI_MIPI_CNTL1_BANDGAP);
7171

7272
regmap_write(priv->regmap, HHI_MIPI_CNTL2,
73-
FIELD_PREP(HHI_MIPI_CNTL2_DIF_TX_CTL0, 0x459) |
73+
FIELD_PREP(HHI_MIPI_CNTL2_DIF_TX_CTL0, 0x45a) |
7474
FIELD_PREP(HHI_MIPI_CNTL2_DIF_TX_CTL1, 0x2680));
7575

7676
reg = DSI_LANE_CLK;

drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw,
237237
*/
238238
if (tmds_clk < 54 * MEGA)
239239
txposdiv = 8;
240-
else if (tmds_clk >= 54 * MEGA && tmds_clk < 148.35 * MEGA)
240+
else if (tmds_clk >= 54 * MEGA && (tmds_clk * 100) < 14835 * MEGA)
241241
txposdiv = 4;
242-
else if (tmds_clk >= 148.35 * MEGA && tmds_clk < 296.7 * MEGA)
242+
else if ((tmds_clk * 100) >= 14835 * MEGA && (tmds_clk * 10) < 2967 * MEGA)
243243
txposdiv = 2;
244-
else if (tmds_clk >= 296.7 * MEGA && tmds_clk <= 594 * MEGA)
244+
else if ((tmds_clk * 10) >= 2967 * MEGA && tmds_clk <= 594 * MEGA)
245245
txposdiv = 1;
246246
else
247247
return -EINVAL;
@@ -324,12 +324,12 @@ static int mtk_hdmi_pll_drv_setting(struct clk_hw *hw)
324324
clk_channel_bias = 0x34; /* 20mA */
325325
impedance_en = 0xf;
326326
impedance = 0x36; /* 100ohm */
327-
} else if (pixel_clk >= 74.175 * MEGA && pixel_clk <= 300 * MEGA) {
327+
} else if (((u64)pixel_clk * 1000) >= 74175 * MEGA && pixel_clk <= 300 * MEGA) {
328328
data_channel_bias = 0x34; /* 20mA */
329329
clk_channel_bias = 0x2c; /* 16mA */
330330
impedance_en = 0xf;
331331
impedance = 0x36; /* 100ohm */
332-
} else if (pixel_clk >= 27 * MEGA && pixel_clk < 74.175 * MEGA) {
332+
} else if (pixel_clk >= 27 * MEGA && ((u64)pixel_clk * 1000) < 74175 * MEGA) {
333333
data_channel_bias = 0x14; /* 10mA */
334334
clk_channel_bias = 0x14; /* 10mA */
335335
impedance_en = 0x0;

drivers/phy/qualcomm/phy-qcom-qmp-combo.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ static int qmp_combo_com_init(struct qmp_combo *qmp)
24722472
ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs);
24732473
if (ret) {
24742474
dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret);
2475-
goto err_unlock;
2475+
goto err_decrement_count;
24762476
}
24772477

24782478
ret = reset_control_bulk_assert(cfg->num_resets, qmp->resets);
@@ -2522,7 +2522,8 @@ static int qmp_combo_com_init(struct qmp_combo *qmp)
25222522
reset_control_bulk_assert(cfg->num_resets, qmp->resets);
25232523
err_disable_regulators:
25242524
regulator_bulk_disable(cfg->num_vregs, qmp->vregs);
2525-
err_unlock:
2525+
err_decrement_count:
2526+
qmp->init_count--;
25262527
mutex_unlock(&qmp->phy_mutex);
25272528

25282529
return ret;

drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int qmp_pcie_msm8996_com_init(struct qmp_phy *qphy)
379379
ret = regulator_bulk_enable(cfg->num_vregs, qmp->vregs);
380380
if (ret) {
381381
dev_err(qmp->dev, "failed to enable regulators, err=%d\n", ret);
382-
goto err_unlock;
382+
goto err_decrement_count;
383383
}
384384

385385
ret = reset_control_bulk_assert(cfg->num_resets, qmp->resets);
@@ -409,7 +409,8 @@ static int qmp_pcie_msm8996_com_init(struct qmp_phy *qphy)
409409
reset_control_bulk_assert(cfg->num_resets, qmp->resets);
410410
err_disable_regulators:
411411
regulator_bulk_disable(cfg->num_vregs, qmp->vregs);
412-
err_unlock:
412+
err_decrement_count:
413+
qmp->init_count--;
413414
mutex_unlock(&qmp->phy_mutex);
414415

415416
return ret;

drivers/phy/qualcomm/phy-qcom-snps-femto-v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ struct phy_override_seq {
115115
*
116116
* @cfg_ahb_clk: AHB2PHY interface clock
117117
* @ref_clk: phy reference clock
118-
* @iface_clk: phy interface clock
119118
* @phy_reset: phy reset control
120119
* @vregs: regulator supplies bulk data
121120
* @phy_initialized: if PHY has been initialized correctly
122121
* @mode: contains the current mode the PHY is in
122+
* @update_seq_cfg: tuning parameters for phy init
123123
*/
124124
struct qcom_snps_hsphy {
125125
struct phy *phy;

0 commit comments

Comments
 (0)