diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-08-15 17:07:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-15 17:07:51 -0400 |
commit | 731fd79c133dc04cabee17ecfa7661189a8df5c8 (patch) | |
tree | 09656086883108a0ddc4b02decfedee13c162188 /drivers/net | |
parent | 77b483f132ba25edf4ef455dd87a91ab7bbf4170 (diff) |
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 <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | 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 e3fd74b871a3..13640f1cab3b 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) | |||
5495 | return; | 5495 | return; |
5496 | 5496 | ||
5497 | apedata = tg3_ape_read32(tp, TG3_APE_FW_STATUS); | 5497 | apedata = tg3_ape_read32(tp, TG3_APE_FW_STATUS); |
5498 | if (apedata != APE_FW_STATUS_READY) | 5498 | if (!(apedata & APE_FW_STATUS_READY)) |
5499 | return; | 5499 | return; |
5500 | 5500 | ||
5501 | /* Wait for up to 1 millisecond for APE to service previous event. */ | 5501 | /* Wait for up to 1 millisecond for APE to service previous event. */ |