USB: serial: digi_acceleport: reduce chars_in_buffer over-reporting
authorJohan Hovold <johan@kernel.org>
Wed, 19 May 2021 09:20:01 +0000 (11:20 +0200)
committerJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:45:35 +0000 (15:45 +0200)
commit3aed3af202aa2f8246d07875809b9bc07a02131b
tree94011650a955b00214ed774e0ecbc0818a5ca01b
parent155591d3ceeec2cd6a50b40278e2014c45f6b5f6
USB: serial: digi_acceleport: reduce chars_in_buffer over-reporting

Due to an ancient quirk in n_tty poll implementation, the
digi_acceleport driver has been reporting that its queue contains 256
(WAKEUP_CHARS) characters whenever its write URB is in use.

This has not been necessary since 2003 when the line-discipline started
taking the write room into account so let's return the maximum transfer
size again in order to over-report a little less and incidentally fix
the related debug statement.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/digi_acceleport.c