ufs: Do not use TX_MUX_SYMB_DIV and TX_MUX_SYMB_DIV

TEGRA234_CLK_MPHY_L0_TX_MUX_SYMB_DIV and TEGRA234_CLK_MPHY_L0_RX_MUX_SYMB_DIV clock are
only for T23x chips. Kept condition accordingly to use them in T23x chips only.

Bug 4199271

Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Change-Id: I228b9da7c92628e3dfce82f571b5aaf0f73427a5
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3143258
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Andy Sobczyk <asobczyk@nvidia.com>
This commit is contained in:
Mallikarjun Kasoju
2024-05-22 18:06:45 +00:00
committed by mobile promotions
parent 566858f37f
commit fee74728d3

View File

@@ -379,6 +379,7 @@ static int ufs_tegra_enable_t234_mphy_clocks(struct ufs_tegra_host *host)
goto out; goto out;
} }
if (host->soc->chip_id != TEGRA264) {
err = clk_set_parent(host->mphy_tx_hs_mux_symb_div, host->mphy_tx_hs_symb_div); err = clk_set_parent(host->mphy_tx_hs_mux_symb_div, host->mphy_tx_hs_symb_div);
if (err) { if (err) {
if (err != -EPROBE_DEFER) if (err != -EPROBE_DEFER)
@@ -387,6 +388,7 @@ static int ufs_tegra_enable_t234_mphy_clocks(struct ufs_tegra_host *host)
__func__, err); __func__, err);
goto out; goto out;
} }
}
err = ufs_tegra_host_clk_enable(dev, "mphy_tx_hs_symb_div", err = ufs_tegra_host_clk_enable(dev, "mphy_tx_hs_symb_div",
host->mphy_tx_hs_symb_div); host->mphy_tx_hs_symb_div);
@@ -407,6 +409,7 @@ static int ufs_tegra_enable_t234_mphy_clocks(struct ufs_tegra_host *host)
goto disable_mphy_tx_hs_symb_div; goto disable_mphy_tx_hs_symb_div;
} }
if (host->soc->chip_id != TEGRA264) {
err = clk_set_parent(host->mphy_rx_hs_mux_symb_div, host->mphy_rx_hs_symb_div); err = clk_set_parent(host->mphy_rx_hs_mux_symb_div, host->mphy_rx_hs_symb_div);
if (err) { if (err) {
dev_err(dev, dev_err(dev,
@@ -414,6 +417,7 @@ static int ufs_tegra_enable_t234_mphy_clocks(struct ufs_tegra_host *host)
__func__, err); __func__, err);
goto disable_mphy_tx_hs_symb_div; goto disable_mphy_tx_hs_symb_div;
} }
}
err = ufs_tegra_host_clk_enable(dev, "mphy_rx_hs_symb_div", host->mphy_rx_hs_symb_div); err = ufs_tegra_host_clk_enable(dev, "mphy_rx_hs_symb_div", host->mphy_rx_hs_symb_div);
if (err) { if (err) {
@@ -584,20 +588,24 @@ static int ufs_tegra_init_mphy_lane_clks(struct ufs_tegra_host *host)
if (err) if (err)
goto out; goto out;
if (host->soc->chip_id != TEGRA264) {
err = ufs_tegra_host_clk_get(dev, "mphy_l0_tx_mux_symb_div", err = ufs_tegra_host_clk_get(dev, "mphy_l0_tx_mux_symb_div",
&host->mphy_tx_hs_mux_symb_div); &host->mphy_tx_hs_mux_symb_div);
if (err) if (err)
goto out; goto out;
}
err = ufs_tegra_host_clk_get(dev, "mphy_l0_rx_hs_symb_div", err = ufs_tegra_host_clk_get(dev, "mphy_l0_rx_hs_symb_div",
&host->mphy_rx_hs_symb_div); &host->mphy_rx_hs_symb_div);
if (err) if (err)
goto out; goto out;
if (host->soc->chip_id != TEGRA264) {
err = ufs_tegra_host_clk_get(dev, "mphy_l0_rx_mux_symb_div", err = ufs_tegra_host_clk_get(dev, "mphy_l0_rx_mux_symb_div",
&host->mphy_rx_hs_mux_symb_div); &host->mphy_rx_hs_mux_symb_div);
if (err) if (err)
goto out; goto out;
}
err = ufs_tegra_host_clk_get(dev, "mphy_l0_tx_2x_symb", err = ufs_tegra_host_clk_get(dev, "mphy_l0_tx_2x_symb",
&host->mphy_l0_tx_2x_symb); &host->mphy_l0_tx_2x_symb);