mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
nvethernet: Add support for RX EQ SW ovrd flag
Add flag to protect RQ EQ SW override logic in OSI from executing for other platforms except jedha Bug 5277708 Bug 5017313 Change-Id: I826523cfbae67017a48576b4f802b7a3eeebfaf9 Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> (cherry picked from commit b2df171faa368e93b1331e58d3b31cee753c0607) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3383665 Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> Reviewed-by: Narayana Reddy P <narayanr@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
4f229ab150
commit
15c7804551
@@ -7075,6 +7075,14 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
|
||||
osi_core->mdc_cr = def_mdc_cr[osi_core->mac];
|
||||
}
|
||||
|
||||
ret_val = of_property_read_u32(np, "nvidia,pcs-rx-eq-sw-ovrd", &osi_core->pcs_rx_eq_sw_ovrd_en);
|
||||
if (ret_val < 0 || osi_core->pcs_rx_eq_sw_ovrd_en != OSI_RX_EQ_SW_OVRD) {
|
||||
dev_info(dev, "failed to read or invalid RX EQ SW override - default to 0\n");
|
||||
osi_core->pcs_rx_eq_sw_ovrd_en = 0;
|
||||
} else {
|
||||
osi_core->pcs_rx_eq_sw_ovrd_en = 1;
|
||||
}
|
||||
|
||||
exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user