On Sat, Sep 24, 2016 at 06:00:57PM +0300, Stas Sergeev wrote:Hi Johan, this actually came from this ancient bug report:
The TIOCOUTQ ioctl calls chars_in_buffer(), and some apps depend onWhy do you think the driver returns 32b in chars_in_buffer after writing
a correct behaviour of that.
mos7840 implements it wrongly: if you write just one char, TIOCOUTQ
will return 32.
This patch should fix it by accounting the number of chars actually
written.
This patch, unfortunately, misses the Tested-by tag.
The reporter didn't test it, and I don't have the hardware in question.
a single character?