netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/7] tg3: Refine APE status check
@ 2008-08-15 20:57 Matt Carlson
  0 siblings, 0 replies; only message in thread
From: Matt Carlson @ 2008-08-15 20:57 UTC (permalink / raw)
  To: davem; +Cc: netdev, Michael Chan, andy

Recently, more status bits have been added to the APE status register.
This patch refines the status register check so that the driver can
send more events than it would have otherwise.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>

---
 drivers/net/tg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index e3fd74b..13640f1 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -5495,7 +5495,7 @@ static void tg3_ape_send_event(struct tg3 *tp, u32 event)
 		return;
 
 	apedata = tg3_ape_read32(tp, TG3_APE_FW_STATUS);
-	if (apedata != APE_FW_STATUS_READY)
+	if (!(apedata & APE_FW_STATUS_READY))
 		return;
 
 	/* Wait for up to 1 millisecond for APE to service previous event. */
-- 
1.5.6.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-15 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 20:57 [PATCH 2/7] tg3: Refine APE status check Matt Carlson

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).