[PATCH rtems 17/18] mv643xx_eth.c: added 0x00100000 bit to 'known' ext. interrupt causes
Vijay Kumar Banerjee
vijay at rtems.org
Tue Mar 30 01:27:49 UTC 2021
From: till straumann <till.straumann at alumni.tu-berlin.de>
In 'testing' mode the paranoia checks found this bit asserted. The
recent linux driver (2013) mentions lists this bit as a 'phy link
status change' bit (together with (1<<16)). Thus, we accept this
as a 'known' bit now.
Update #4344
---
bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
index 9e21614367..e952cbbb8a 100644
--- a/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
+++ b/bsps/powerpc/beatnik/net/if_mve/mv643xx_eth.c
@@ -108,7 +108,7 @@
/* Compile-time debugging features */
/* Enable paranoia assertions and checks; reduce # of descriptors to minimum for stressing */
-#undef MVETH_TESTING
+#define MVETH_TESTING
/* Enable debugging messages and some support routines (dump rings etc.) */
#undef MVETH_DEBUG
@@ -409,7 +409,8 @@
* if there are no buffers
*/
#define MV643XX_ETH_ALL_EXT_IRQS (0x0011ffff)
-#define MV643XX_ETH_KNOWN_EXT_IRQS (0x00010101)
+/* Recent (2013) linux driver mentions both bits 0x00110000 as 'link change' causes */
+#define MV643XX_ETH_KNOWN_EXT_IRQS (0x00110101)
#define MV643XX_ETH_EXT_IRQ_TX_DONE (1<<0)
#define MV643XX_ETH_EXT_IRQ_LINK_CHG (1<<16)
#define MV643XX_ETH_INTERRUPT_ENBL_R(port) (0x2468 + ((port)<<10))
--
2.26.2
More information about the devel
mailing list