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

Commit 17c5c209 authored by Grant Likely's avatar Grant Likely
Browse files

[POWERPC] Uartlite: bootwrapper bug fix, getc loops forever



Fixes inverted logic in uartlite_getc

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 4c3d514d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -45,8 +45,8 @@ static void uartlite_putc(unsigned char c)

static unsigned char uartlite_getc(void)
{
	u32 reg = ULITE_STATUS_RXVALID;
	while (reg & ULITE_STATUS_RXVALID) /* spin on RXVALID bit */
	u32 reg = 0;
	while (!(reg & ULITE_STATUS_RXVALID)) /* spin waiting for RXVALID bit */
		reg = in_be32(reg_base + ULITE_STATUS);
	return in_be32(reg_base + ULITE_RX);
}