[dpdk-stable] [PATCH 18.11 03/10] net/atlantic: error handling for mailbox access
Igor Russkikh
Igor.Russkikh at aquantia.com
Sat May 18 11:47:39 CEST 2019
From: Pavel Belous <Pavel.Belous at aquantia.com>
Add error handling for mailbox access.
Signed-off-by: Igor Russkikh <igor.russkikh at aquantia.com>
Signed-off-by: Pavel Belous <Pavel.Belous at aquantia.com>
---
drivers/net/atlantic/hw_atl/hw_atl_utils.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/atlantic/hw_atl/hw_atl_utils.c b/drivers/net/atlantic/hw_atl/hw_atl_utils.c
index f11093a50404..63f333608dfc 100644
--- a/drivers/net/atlantic/hw_atl/hw_atl_utils.c
+++ b/drivers/net/atlantic/hw_atl/hw_atl_utils.c
@@ -306,6 +306,11 @@ int hw_atl_utils_fw_downld_dwords(struct aq_hw_s *self, u32 a,
HW_ATL_MIF_CMD)),
1, 1000U);
+ if (err) {
+ err = -ETIMEDOUT;
+ goto err_exit;
+ }
+
*(p++) = aq_hw_read_reg(self, HW_ATL_MIF_VAL);
a += 4;
}
--
2.17.1
More information about the stable
mailing list