Add virtualization check to configure CAR.

In case of virtualization, server does the CAR configuration
so SKIP the parse and configuring the CAR.

Bug 2694285

Change-Id: I5c9e5d180f2cd88ca0a55b3259f0d25ce8156a13
Signed-off-by: Nagaraj annaiah <nannaiah@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2536560
This commit is contained in:
nannaiah
2021-05-28 11:33:29 -07:00
committed by Revanth Kumar Uppala
parent e6aa184c4e
commit 0003b0bf62

8
drivers/net/ethernet/nvidia/nvethernet/ether_linux.c Normal file → Executable file
View File

@@ -4711,9 +4711,11 @@ static int ether_init_plat_resources(struct platform_device *pdev,
osi_core->xpcs_base = NULL;
}
ret = ether_configure_car(pdev, pdata);
if (ret < 0) {
dev_err(&pdev->dev, "failed to get clks/reset");
if (osi_core->use_virtualization == OSI_DISABLE) {
ret = ether_configure_car(pdev, pdata);
if (ret < 0) {
dev_err(&pdev->dev, "failed to get clks/reset");
}
}
return ret;