Skip to contentSkip to conversation

uartlite - fix poll support

PATCH Applied Michal Simek 2 participants 4 messages Aug 25, 2010 – Sep 2, 2010 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I forget to CC Peter Korsgaard (sorry for that again) and he found one obscure thing in my first patch. This second patch removes it. It will be the best to add those two patches together but I am not sure if is possible. It depends on Greg maintaining process. (If is possible I would like to ask for it).

Peter: I added your Signed-off-by line I hope that you are OK with it.

Greg: If there are no problems with it, please add to your tty tree or add together with the first patch.

Thanks,
Michal

#1 lore raw

PATCH 1/1 serial: uartlite: Remove obscure loop from ulite_get_poll_char

The previous patch
"serial: Add CONSOLE_POLL support for uartlite" (sha1 id 52ea4a7ef12f286bd68d13a93daaa688f56a1e14) contained obcure loop in ulite_get_poll_char function.

---
 drivers/serial/uartlite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/uartlite.c +1 -1
index c0fae0d..c4bf54b 100644
@@ -325,7 +325,7 @@ static int ulite_verify_port(struct uart_port *port, struct serial_struct *ser)
 #ifdef CONFIG_CONSOLE_POLL
 static int ulite_get_poll_char(struct uart_port *port)
 {
-	while (!(ioread32be(port->membase + ULITE_STATUS)
+	if (!(ioread32be(port->membase + ULITE_STATUS)
 						& ULITE_STATUS_RXVALID))
 		return NO_POLL_CHAR;
 
Signature · 1 line
1.5.5.6
Applied
#2 lore raw

Re: [PATCH] serial: uartlite: Remove obscure loop from ulite_get_poll_char

Quoted 4 lines · Michal Simek

The previous patch
"serial: Add CONSOLE_POLL support for uartlite" (sha1 id 52ea4a7ef12f286bd68d13a93daaa688f56a1e14) contained obcure loop in ulite_get_poll_char function.

I've merged this with the original patch so as to not have a problem.

thanks,

greg k-h

#3 lore raw

Re: [PATCH] serial: uartlite: Remove obscure loop from ulite_get_poll_char

Quoted 7 lines · Greg KH
Quoted 4 lines · Michal Simek

The previous patch
"serial: Add CONSOLE_POLL support for uartlite" (sha1 id 52ea4a7ef12f286bd68d13a93daaa688f56a1e14) contained obcure loop in ulite_get_poll_char function.

I've merged this with the original patch so as to not have a problem.

Thanks and sorry for the problem,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian