From 59d5f5da4e2d403fda70a5d42a0391f74b103c28 Mon Sep 17 00:00:00 2001 From: Srinivas Ramachandran Date: Mon, 29 Jul 2019 22:31:31 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/2163995 Reviewed-by: mobile promotions Tested-by: mobile promotions --- osi/core/osi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osi/core/osi_core.c b/osi/core/osi_core.c index 95fde05..e1f93be 100644 --- a/osi/core/osi_core.c +++ b/osi/core/osi_core.c @@ -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;