diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-04-11 23:47:59 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-19 21:01:17 +0200 |
commit | 40b01727a5a65597160f1738d3fbe63de902f0cb (patch) | |
tree | bdd854422122703257d5c25658201455f977abc0 /drivers/net/sky2.h | |
parent | sky2: disable support for 88E8056 (diff) | |
download | linux-40b01727a5a65597160f1738d3fbe63de902f0cb.tar.xz linux-40b01727a5a65597160f1738d3fbe63de902f0cb.zip |
sky2: handle descriptor errors
There should never be descriptor error unless hardware or driver is buggy.
But if an error occurs, print useful information, clear irq, and recover.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index ac24bdc42976..9ca4a2c061c6 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h @@ -288,6 +288,9 @@ enum { | Y2_IS_CHK_TXA1 | Y2_IS_CHK_RX1, Y2_IS_PORT_2 = Y2_IS_IRQ_PHY2 | Y2_IS_IRQ_MAC2 | Y2_IS_CHK_TXA2 | Y2_IS_CHK_RX2, + Y2_IS_ERROR = Y2_IS_HW_ERR | + Y2_IS_IRQ_MAC1 | Y2_IS_CHK_TXA1 | Y2_IS_CHK_RX1 | + Y2_IS_IRQ_MAC2 | Y2_IS_CHK_TXA2 | Y2_IS_CHK_RX2, }; /* B2_IRQM_HWE_MSK 32 bit IRQ Moderation HW Error Mask */ |