Skip to content

Commit

Permalink
[PATCH] m68knommu: FEC driver set different priority/level on each IRQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Willson Callan authored and Linus Torvalds committed Jun 28, 2006
1 parent 6b26529 commit 83901fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 83901fc

Please sign in to comment.