diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-08-20 13:59:27 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 09:48:57 +0200 |
commit | bedeea6e3bdca8ccb455aef11d9db23911af3863 (patch) | |
tree | 9a88e3bf6283a2c51a2f609d0bd088e93300b3fd /arch/blackfin | |
parent | Blackfin: bf537-stamp: tweak i2c address for ad5280 add-on tftlcd board (diff) | |
download | linux-bedeea6e3bdca8ccb455aef11d9db23911af3863.tar.xz linux-bedeea6e3bdca8ccb455aef11d9db23911af3863.zip |
Blackfin: SIC: fix off-by-one error in loop
Make sure we include EMAC_SYSTAT when showing errors.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index eaece5f84e42..0df4fb57f5ba 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c @@ -511,7 +511,7 @@ static void bfin_demux_mac_status_irq(unsigned int int_err_irq, int i, irq = 0; u32 status = bfin_read_EMAC_SYSTAT(); - for (i = 0; i < (IRQ_MAC_STMDONE - IRQ_MAC_PHYINT); i++) + for (i = 0; i <= (IRQ_MAC_STMDONE - IRQ_MAC_PHYINT); i++) if (status & (1L << i)) { irq = IRQ_MAC_PHYINT + i; break; @@ -529,8 +529,9 @@ static void bfin_demux_mac_status_irq(unsigned int int_err_irq, } else printk(KERN_ERR "%s : %s : LINE %d :\nIRQ ?: MAC ERROR" - " INTERRUPT ASSERTED BUT NO SOURCE FOUND\n", - __func__, __FILE__, __LINE__); + " INTERRUPT ASSERTED BUT NO SOURCE FOUND" + "(EMAC_SYSTAT=0x%X)\n", + __func__, __FILE__, __LINE__, status); } #endif |