[PATCH]tty: Incorrect use tty_ldisc_flush() in TTY drivers.

2012-11-26 Thread Ilya Zykov
Sorry. Correct patch format. Related bug 'tty: fix "IRQ45: nobody cared"' Related commit 7b292b4bf9a9d6098440d85616d6ca4c608b8304 Unfortunately, some drivers indirectly call ldisc's flush_buffer() function in own callback function close(). In particularly, by the use of tty_ldisc_flush(), bef

[PATCH]tty: Incorrect use tty_ldisc_flush() in TTY drivers.

2012-11-23 Thread Ilya Zykov
This patch correct tty serial drivers. Unfortunately, many drivers indirectly call ldisc's flush_buffer() function in own callback function close(). Рarticularly, by the use of tty_ldisc_flush(), before TTY LAYER calls ldisc's flush_buffer() in the right moment. 1. It disturb the logic of work l