uartlite - fix poll support
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
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
@@ -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
Greg KH
AppliedRe: [PATCH] serial: uartlite: Remove obscure loop from ulite_get_poll_char
Quoted 4 lines · Michal Simek
The previous patch
"serial: AddCONSOLE_POLLsupport for uartlite" (sha1 id52ea4a7ef12f286bd68d13a93daaa688f56a1e14) contained obcure loop inulite_get_poll_charfunction.
I've merged this with the original patch so as to not have a problem.
thanks,
greg k-h
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: AddCONSOLE_POLLsupport for uartlite" (sha1 id52ea4a7ef12f286bd68d13a93daaa688f56a1e14) contained obcure loop inulite_get_poll_charfunction.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