nvethernet: Fix invalid KWT fail on NDAS

Issue:
KWT test is getting failed on
NDAS build due nvethernet
driver warnings.

Fix:
Remove unrelated nvethernet
driver warnings

Bug 3935448
Bug 4088361

Change-Id: Ic76a42b2aab2f95ae8b9f89c7823693d58c37f33
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2854306
(cherry picked from commit bb1910bfd1a5305dee9302b2d8fde081e391c516)
Signed-off-by: Mohan Thadikamalla <mohant@nvidia.com>
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897233
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mohan Thadikamalla
2023-02-07 12:58:59 +05:30
committed by mobile promotions
parent a397076302
commit 756347cd7f

View File

@@ -5432,8 +5432,8 @@ static int ether_parse_residual_queue(struct ether_priv_data *pdata,
if ((ret < 0) ||
(*pval >= osi_core->num_mtl_queues) ||
(*pval == 0U)) {
dev_err(pdata->dev, "No/incorrect residual queue defined\n");
/* TODO we should return -EINVAL */
dev_info(pdata->dev,
"No residual queue defined, set default\n");
*pval = 0x2U;
}
@@ -5586,7 +5586,7 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
ret = of_property_read_u32(np, "nvidia,ptp_ref_clock_speed",
&pdata->ptp_ref_clock_speed);
if (ret != 0) {
dev_err(dev, "setting default PTP clk rate as 312.5MHz\n");
dev_info(dev, "setting default PTP clk rate as 312.5MHz\n");
pdata->ptp_ref_clock_speed = ETHER_DFLT_PTP_CLK;
}
/* read promiscuous mode supported or not */
@@ -5676,8 +5676,8 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
break;
}
if (i == osi_core->num_mtl_queues) {
dev_err(dev, "Invalid PTP RX queue in DT:%d\n",
osi_core->ptp_config.ptp_rx_queue);
dev_info(dev, "Invalid PTP RX queue in DT:%d\n",
osi_core->ptp_config.ptp_rx_queue);
osi_core->ptp_config.ptp_rx_queue =
ETHER_DEFAULT_PTP_QUEUE;
}