Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e60c148 authored by Roel Kluin's avatar Roel Kluin Committed by Michal Simek
Browse files

microblaze: iowrite upon timeout



retries reaches -1, so the iowrite occurrs upon timeout.

Acked-by: default avatarJohn Williams <john.williams@petalogix.com>
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 04e3a553
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */