netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ixgbe: Wait for 1ms, not 1us, after RST
@ 2015-10-27  0:16 dan.streetman
  2015-10-27 17:03 ` Skidmore, Donald C
  2015-10-27 17:57 ` Peter Hurley
  0 siblings, 2 replies; 5+ messages in thread
From: dan.streetman @ 2015-10-27  0:16 UTC (permalink / raw)
  To: Jeff Kirsher
  Cc: Jesse Brandeburg, Shannon Nelson, Carolyn Wyborny, Don Skidmore,
	Matthew Vick, John Ronciak, Mitch Williams, intel-wired-lan,
	netdev, linux-kernel, Dan Streetman, Dan Streetman

From: Dan Streetman <dan.streetman@canonical.com>

The driver currently waits 1us after issuing a RST, but the spec
requires it to wait 1ms.

Signed-off-by: Dan Streetman <dan.streetman@canonical.com>
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
index 4e75843..147bc65 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
@@ -113,7 +113,12 @@ mac_reset_top:
 
 	/* Poll for reset bit to self-clear indicating reset is complete */
 	for (i = 0; i < 10; i++) {
-		udelay(1);
+		/* sec 8.2.4.1.1 :
+		 * programmers must wait approximately 1 ms after setting before
+		 * attempting to check if the bit has cleared or to access (read
+		 * or write) any other device register.
+		 */
+		mdelay(1);
 		ctrl = IXGBE_READ_REG(hw, IXGBE_CTRL);
 		if (!(ctrl & IXGBE_CTRL_RST_MASK))
 			break;
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-27 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27  0:16 [PATCH] ixgbe: Wait for 1ms, not 1us, after RST dan.streetman
2015-10-27 17:03 ` Skidmore, Donald C
2015-10-27 17:32   ` Dan Streetman
2015-10-27 17:57 ` Peter Hurley
2015-10-27 18:27   ` [PATCHv2] " Dan Streetman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).