Skip to contentSkip to conversation

tg3: Refine APE status check

PATCH In review Matt Carlson 1 participant 1 message Aug 15, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/7 tg3: Refine APE status check

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.

---
 drivers/net/tg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/tg3.c +1 -1
index e3fd74b..13640f1 100644
@@ -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. */
Signature · 1 line
1.5.6.4