From: Matt Carlson Date: Fri, 15 Aug 2008 21:07:51 +0000 (-0700) Subject: tg3: Refine APE status check X-Git-Tag: v2.6.27-rc4~39^2~39 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=731fd79c133dc04cabee17ecfa7661189a8df5c8;p=linux-2.6-omap-h63xx.git 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. Signed-off-by: Matt Carlson Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index e3fd74b871a..13640f1cab3 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. */