Commit 731fd79c authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

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: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 77b483f1
...@@ -5495,7 +5495,7 @@ static void tg3_ape_send_event(struct tg3 *tp, u32 event) ...@@ -5495,7 +5495,7 @@ static void tg3_ape_send_event(struct tg3 *tp, u32 event)
return; return;
apedata = tg3_ape_read32(tp, TG3_APE_FW_STATUS); apedata = tg3_ape_read32(tp, TG3_APE_FW_STATUS);
if (apedata != APE_FW_STATUS_READY) if (!(apedata & APE_FW_STATUS_READY))
return; return;
/* Wait for up to 1 millisecond for APE to service previous event. */ /* Wait for up to 1 millisecond for APE to service previous event. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment