microblaze: iowrite upon timeout
PATCH 1/1 microblaze: iowrite upon timeout
retries reaches -1, so the iowrite occurrs upon timeout.
Signed-off-by Roel Kluin <[email protected]>
---
arch/microblaze/kernel/early_printk.c +1 -1
@@ -36,7 +36,7 @@ static void early_printk_putc(char c)unsigned retries =10000 ;/* read status bit - 0x8 offset */ -while (retries-- && (in_be32 (base_addr +8 ) & (1 <<3 ))) +while (--retries && (in_be32 (base_addr +8 ) & (1 <<3 ))) ;/* Only attempt the iowrite if we didn't timeout */
Quoted 3 lines · Roel Kluin
retries reaches -1, so the iowrite occurrs upon timeout.
Signed-off-by Roel Kluin <[email protected]>
Acked-by John Williams <[email protected]>
(also applied to PetaLogix SVN)
Thanks,
John
Quoted 21 lines
---
arch/microblaze/kernel/early_printk.c +1
-1@@ -36,7 +36,7 @@ static void early_printk_putc(char c) unsigned retries = 10000; /* read status bit - 0x8 offset */ - while (retries-- && (in_be32(base_addr + 8) & (1 << 3))) + while (--retries && (in_be32(base_addr + 8) & (1 << 3))) ; /* Only attempt the iowrite if we didn't timeout */___________________________
microblaze-uclinux mailing list
[email protected]
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
Signature · 3 lines
John Williams, PhD, B.Eng, B.IT PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663 f: +61-7-30090663