aboutsummaryrefslogtreecommitdiff
path: root/include/npu2.h
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.ibm.com>2019-10-09 21:38:07 +0200
committerOliver O'Halloran <oohall@gmail.com>2019-10-22 17:31:45 +1100
commitdbc70aea3a2eec5d8d3c092c2397b2997e35ba60 (patch)
treeb0121d2d49e3f52eb0abe7db762f8187c27a051f /include/npu2.h
parent7989d6edfcbbe9ba061b667f53b82f6860ffff01 (diff)
downloadskiboot-dbc70aea3a2eec5d8d3c092c2397b2997e35ba60.zip
skiboot-dbc70aea3a2eec5d8d3c092c2397b2997e35ba60.tar.gz
skiboot-dbc70aea3a2eec5d8d3c092c2397b2997e35ba60.tar.bz2
npu2-opencapi: Detect PHY reset errors
PHY reset can fail! Though past problems are now fixed, let's handle any future failure. Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/npu2.h b/include/npu2.h
index 6b1063d..6171cd3 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -234,7 +234,7 @@ void npu2_clear_link_flag(struct npu2_dev *ndev, uint8_t flag);
uint32_t reset_ntl(struct npu2_dev *ndev);
extern int nv_zcal_nominal;
void npu2_opencapi_phy_init(struct npu2_dev *dev);
-void npu2_opencapi_phy_reset(struct npu2_dev *dev);
+int npu2_opencapi_phy_reset(struct npu2_dev *dev);
void npu2_opencapi_phy_prbs31(struct npu2_dev *dev);
void npu2_opencapi_bump_ui_lane(struct npu2_dev *dev);
int64_t npu2_freeze_status(struct phb *phb __unused,