-
由 Albert Herranz 提交于
The retry logic in ug_putc() is broken. If the TX fifo is not ready and the counter runs out it will have a value of -1 and no transfer should be attempted. Also, a counter with a value of 0 means that the TX fifo got ready in the last try and the transfer should be attempted. Reported-by: N"Juha Leppanen" <juha_motorsportcom@luukku.com> Signed-off-by: N"Juha Leppanen" <juha_motorsportcom@luukku.com> Signed-off-by: NAlbert Herranz <albert_herranz@yahoo.es> Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
698cd335