nvethernetrm: core: Fix argument passed for pad calibration

Issue: Pad calibration failed when the OSI API function
osi_pad_calibrate is invoked, but works when pad calibration
is triggered internally in osi_hw_core_init. Issue is the
OSI API passes incorrect argument for base address.

Fix: Provide the correct base address in OSI interface API.

Bug 200512422

Change-Id: I625f3269452e31e89fef07f960c80a2fd2024634
Signed-off-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2163995
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Srinivas Ramachandran
2019-07-29 22:31:31 -07:00
committed by mobile promotions
parent 2a539aedd8
commit 59d5f5da4e

View File

@@ -275,7 +275,7 @@ int osi_pad_calibrate(struct osi_core_priv_data *osi_core)
{
if ((osi_core != OSI_NULL) && (osi_core->ops != OSI_NULL) &&
(osi_core->ops->pad_calibrate != OSI_NULL)) {
return osi_core->ops->pad_calibrate(osi_core);
return osi_core->ops->pad_calibrate(osi_core->base);
}
return -1;