* [RFC] ice: use msleep instead of mdelay
@ 2022-02-04 16:58 ` Jonathan Toppins
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Toppins @ 2022-02-04 16:58 UTC (permalink / raw)
To: intel-wired-lan, lihong.yang
Cc: Jocelyn Falempe, Jesse Brandeburg, Tony Nguyen, David S. Miller,
Jakub Kicinski, netdev, linux-kernel
Use msleep for long delays instead of spinning in the driver.
Suggested-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
---
drivers/net/ethernet/intel/ice/ice_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c
index 408d15a5b0e3..50987d513faf 100644
--- a/drivers/net/ethernet/intel/ice/ice_common.c
+++ b/drivers/net/ethernet/intel/ice/ice_common.c
@@ -1107,7 +1107,7 @@ int ice_check_reset(struct ice_hw *hw)
GLGEN_RSTCTL_GRSTDEL_S) + 10;
for (cnt = 0; cnt < grst_timeout; cnt++) {
- mdelay(100);
+ msleep(100);
reg = rd32(hw, GLGEN_RSTAT);
if (!(reg & GLGEN_RSTAT_DEVSTATE_M))
break;
@@ -3196,7 +3196,7 @@ ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, bool ena_auto_link_update)
if (!status)
break;
- mdelay(100);
+ msleep(100);
}
if (status)
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [RFC] ice: use msleep instead of mdelay
@ 2022-02-04 16:58 ` Jonathan Toppins
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Toppins @ 2022-02-04 16:58 UTC (permalink / raw)
To: intel-wired-lan
Use msleep for long delays instead of spinning in the driver.
Suggested-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
---
drivers/net/ethernet/intel/ice/ice_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c
index 408d15a5b0e3..50987d513faf 100644
--- a/drivers/net/ethernet/intel/ice/ice_common.c
+++ b/drivers/net/ethernet/intel/ice/ice_common.c
@@ -1107,7 +1107,7 @@ int ice_check_reset(struct ice_hw *hw)
GLGEN_RSTCTL_GRSTDEL_S) + 10;
for (cnt = 0; cnt < grst_timeout; cnt++) {
- mdelay(100);
+ msleep(100);
reg = rd32(hw, GLGEN_RSTAT);
if (!(reg & GLGEN_RSTAT_DEVSTATE_M))
break;
@@ -3196,7 +3196,7 @@ ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, bool ena_auto_link_update)
if (!status)
break;
- mdelay(100);
+ msleep(100);
}
if (status)
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-04 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 16:58 [RFC] ice: use msleep instead of mdelay Jonathan Toppins
2022-02-04 16:58 ` [Intel-wired-lan] " Jonathan Toppins
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.