Files
linux/drivers
Yauhen Kharuzhy 9942448837 s3cmci: Fix hangup in do_pio_write()
This commit fixes the regression what was added by commit
088a78af97 "s3cmci: Support transfers
which are not multiple of 32 bits."

fifo_free() now returns amount of available space in FIFO buffer in
bytes.  But do_pio_write() writes to FIFO 32-bit words.  Condition for
return from cycle is (fifo_free() == 0), but when fifo has 1..3 bytes
of free space then this condition will never be true and system hangs.

This patch changes condition in the while() to (fifo_free() > 3).

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
2009-02-18 20:56:04 +01:00
..
2009-01-08 16:29:41 +00:00
2009-02-02 23:26:57 -08:00
…
2009-01-29 18:04:43 -08:00
…
2009-01-11 01:34:25 +01:00
2009-01-15 16:39:40 -08:00
…
2009-02-18 20:56:04 +01:00
2009-01-09 03:39:43 -05:00
2009-02-02 19:53:02 +03:00
2009-02-11 14:25:36 -08:00
…
2009-01-30 08:40:54 -08:00
…
…
…
…
…
2009-02-11 14:25:37 -08:00
…