diff options
author | Willson Callan <wcallan@racepointmedia.com> | 2006-06-27 03:13:44 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 01:26:37 (GMT) |
commit | 83901fc1c786c642c576f51302d79df849ad7d71 (patch) | |
tree | f8ea78c635f2ecdf495efff1172c715904556844 /drivers/net | |
parent | 6b2652936b9e61df47664a8dde46872a74d7dba2 (diff) | |
download | linux-fsl-qoriq-83901fc1c786c642c576f51302d79df849ad7d71.tar.xz |
[PATCH] m68knommu: FEC driver set different priority/level on each IRQ
Set different irq priority levels for each IRQ requested.
According to the Freescale ColdFire documentation each separate IRQ
must have its own unique priority/level combination.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 0ba9f77..6b76418 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1387,13 +1387,13 @@ static void __inline__ fec_request_intrs(struct net_device *dev) { volatile unsigned char *icrp; volatile unsigned long *imrp; - int i; + int i, ilip; b = (fep->index) ? MCFICM_INTC1 : MCFICM_INTC0; icrp = (volatile unsigned char *) (MCF_IPSBAR + b + MCFINTC_ICR0); - for (i = 23; (i < 36); i++) - icrp[i] = 0x23; + for (i = 23, ilip = 0x28; (i < 36); i++) + icrp[i] = ilip--; imrp = (volatile unsigned long *) (MCF_IPSBAR + b + MCFINTC_IMRH); |