mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvethernet: Don't enable clocks for virtualization.
Incase of ethernet virtualization, ethernet server enables clock so don't enable clocks from VM. Bug 2694285 Change-Id: I6c191908599ef86f632a2801d1e7d3e06cb03c4f Signed-off-by: Nagaraj Annaiah <nannaiah@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2587837 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
6c979ebdd5
commit
ceb7893c0e
@@ -428,12 +428,14 @@ static void ether_disable_eqos_clks(struct ether_priv_data *pdata)
|
|||||||
*/
|
*/
|
||||||
static void ether_disable_clks(struct ether_priv_data *pdata)
|
static void ether_disable_clks(struct ether_priv_data *pdata)
|
||||||
{
|
{
|
||||||
|
if (pdata->osi_core->use_virtualization == OSI_DISABLE) {
|
||||||
if (pdata->osi_core->mac == OSI_MAC_HW_MGBE) {
|
if (pdata->osi_core->mac == OSI_MAC_HW_MGBE) {
|
||||||
ether_disable_mgbe_clks(pdata);
|
ether_disable_mgbe_clks(pdata);
|
||||||
} else {
|
} else {
|
||||||
ether_disable_eqos_clks(pdata);
|
ether_disable_eqos_clks(pdata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enable all MAC MGBE related clks.
|
* @brief Enable all MAC MGBE related clks.
|
||||||
@@ -706,6 +708,7 @@ err_axi_cbb:
|
|||||||
*/
|
*/
|
||||||
static int ether_enable_clks(struct ether_priv_data *pdata)
|
static int ether_enable_clks(struct ether_priv_data *pdata)
|
||||||
{
|
{
|
||||||
|
if (pdata->osi_core->use_virtualization == OSI_DISABLE) {
|
||||||
if (pdata->osi_core->mac == OSI_MAC_HW_MGBE) {
|
if (pdata->osi_core->mac == OSI_MAC_HW_MGBE) {
|
||||||
return ether_enable_mgbe_clks(pdata);
|
return ether_enable_mgbe_clks(pdata);
|
||||||
}
|
}
|
||||||
@@ -713,6 +716,9 @@ static int ether_enable_clks(struct ether_priv_data *pdata)
|
|||||||
return ether_enable_eqos_clks(pdata);
|
return ether_enable_eqos_clks(pdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief ether_conf_eee - Init and configure EEE LPI in the MAC
|
* @brief ether_conf_eee - Init and configure EEE LPI in the MAC
|
||||||
*
|
*
|
||||||
@@ -5119,6 +5125,8 @@ static int ether_init_plat_resources(struct platform_device *pdev,
|
|||||||
if (ret != -EPROBE_DEFER)
|
if (ret != -EPROBE_DEFER)
|
||||||
dev_err(&pdev->dev, "failed to get clks/reset");
|
dev_err(&pdev->dev, "failed to get clks/reset");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
pdata->clks_enable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user