mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
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:
committed by
Revanth Kumar Uppala
parent
e6aa184c4e
commit
0003b0bf62
8
drivers/net/ethernet/nvidia/nvethernet/ether_linux.c
Normal file → Executable file
8
drivers/net/ethernet/nvidia/nvethernet/ether_linux.c
Normal file → Executable 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;
|
||||
|
||||
Reference in New Issue
Block a user