Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752101Ab3EESdO (ORCPT ); Sun, 5 May 2013 14:33:14 -0400 Received: from mail-la0-f50.google.com ([209.85.215.50]:39583 "EHLO mail-la0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943Ab3EESdL (ORCPT ); Sun, 5 May 2013 14:33:11 -0400 From: Johan Hovold To: Greg Kroah-Hartman Cc: Peter Hurley , Stas Sergeev , Jarkko Huijts , Alan Cox , linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Caylan Van Larson , "Rafael J. Wysocki" , Johan Hovold Subject: [PATCH 0/7] USB: serial: add wait_until_sent-support Date: Sun, 5 May 2013 20:32:26 +0200 Message-Id: <1367778753-22297-1-git-send-email-jhovold@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <20130505182913.GE16818@localhost> References: <20130505182913.GE16818@localhost> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1644 Lines: 42 These patches add wait_until_sent-support to usb-serial, which removes the need to check hardware buffers in chars_in_buffer. This fixes a problem in ftdi_sio (since 3.7) where select or TIOCMOUTQ would take much longer than before due the hardware buffers being queried. Hardware buffers are also currently checked in chars_in_buffer in io_ti (since 3.8) and ti_usb_3410_5052 (in 3.10). Note that simply removing the hardware-buffer checks (e.g. for the stable trees) would break tty_wait_until_sent, which is used, for instance, by tcdrain, tcsendbreak, and close. Johan Johan Hovold (7): USB: serial: add wait_until_sent operation USB: serial: add generic wait_until_sent implementation USB: ftdi_sio: clean up get_modem_status USB: ftdi_sio: fix chars_in_buffer overhead USB: io_ti: fix chars_in_buffer overhead USB: ti_usb_3410_5052: fix chars_in_buffer overhead USB: serial: clean up chars_in_buffer drivers/usb/serial/ftdi_sio.c | 28 +++++++++------------------- drivers/usb/serial/generic.c | 29 +++++++++++++++++++++++++++++ drivers/usb/serial/io_ti.c | 22 ++++++++++++++-------- drivers/usb/serial/ti_usb_3410_5052.c | 23 +++++++++++++++-------- drivers/usb/serial/usb-serial.c | 30 +++++++++++++++++++++--------- include/linux/usb/serial.h | 4 ++++ 6 files changed, 92 insertions(+), 44 deletions(-) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/