From patchwork Wed Apr 7 10:39:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 12187677 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30725C433ED for ; Wed, 7 Apr 2021 10:39:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0C7A613B3 for ; Wed, 7 Apr 2021 10:39:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234926AbhDGKkA (ORCPT ); Wed, 7 Apr 2021 06:40:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:48954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233718AbhDGKj7 (ORCPT ); Wed, 7 Apr 2021 06:39:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 06AD3613A0; Wed, 7 Apr 2021 10:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617791990; bh=vXi6EZ5Y2mHzlJnd1Cdr7bE3o2xIcpNUrfb+ef8l96U=; h=From:To:Cc:Subject:Date:From; b=VuxvPQLFGuSeIuofyflrGKfb0z0ZFlLV2PD0hkXEQnaW1yRIr81hnEM/AdQPrRa2v /SHsaxG9qUq8vVAVPPcMi8nAgXcoFlQcPnVPZGIqvmhg4C0Q0nXcXRAAK3GdnyhNZI XWA0G5asiLG7LuydLdw4LixVHijlb6cIPrz3f0LoV5axruDM3sRvpldX0MwRo+LoHa Hzmo+8aaM4jiHdtR7w2ZjHl8nOHBYqfPm5NxkyJFKBCHp8r+f49qxobDW092xYiChX S/dBjHDBbtsG4QCYIZfdXTDZxQPWTPUNVWPKfPEKijZ5gxADxBPv/vEEZ7l/q6oLgv fYud+zzEe+ZqQ== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lU5b4-0000EX-67; Wed, 07 Apr 2021 12:39:42 +0200 From: Johan Hovold To: Johan Hovold Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/24] USB: serial: TIOCSSERIAL fixes and generic support Date: Wed, 7 Apr 2021 12:39:01 +0200 Message-Id: <20210407103925.829-1-johan@kernel.org> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org TIOCSSERIAL is a horrid, underspecified, legacy interface which for most serial devices is only useful for setting the close_delay and closing_wait parameters. This series fixes up the various USB serial driver implementations, before adding generic support to core for the benefit of all USB serial drivers. Johan Johan Hovold (24): USB: serial: ark3116: fix TIOCGSERIAL implementation USB: serial: f81232: fix TIOCGSERIAL implementation USB: serial: f81534: fix TIOCGSERIAL implementation USB: serial: ftdi_sio: fix TIOCGSERIAL implementation USB: serial: io_edgeport: fix TIOCGSERIAL implementation USB: serial: io_ti: fix TIOCGSERIAL implementation USB: serial: mos7720: fix TIOCGSERIAL implementation USB: serial: mos7840: fix TIOCGSERIAL implementation USB: serial: opticon: fix TIOCGSERIAL implementation USB: serial: pl2303: fix TIOCGSERIAL implementation USB: serial: quatech2: fix TIOCGSERIAL implementation USB: serial: ssu100: fix TIOCGSERIAL implementation USB: serial: ti_usb_3410_5052: fix TIOCGSERIAL implementation USB: serial: ti_usb_3410_5052: fix TIOCSSERIAL permission check USB: serial: usb_wwan: fix TIOCSSERIAL jiffies conversions USB: serial: usb_wwan: fix unprivileged TIOCCSERIAL USB: serial: usb_wwan: fix TIOCGSERIAL implementation USB: serial: whiteheat: fix TIOCGSERIAL implementation USB: serial: fix return value for unsupported ioctls USB: serial: add generic support for TIOCSSERIAL USB: serial: stop reporting legacy UART types USB: serial: ftdi_sio: ignore baud_base changes USB: serial: ftdi_sio: simplify TIOCGSERIAL permission check USB: serial: ftdi_sio: clean up TIOCSSERIAL drivers/usb/serial/ark3116.c | 13 ------ drivers/usb/serial/f81232.c | 11 ++--- drivers/usb/serial/f81534.c | 7 +--- drivers/usb/serial/ftdi_sio.c | 35 ++++------------ drivers/usb/serial/io_edgeport.c | 22 ---------- drivers/usb/serial/io_ti.c | 24 ----------- drivers/usb/serial/mos7720.c | 18 -------- drivers/usb/serial/mos7840.c | 23 ----------- drivers/usb/serial/opticon.c | 18 -------- drivers/usb/serial/option.c | 2 - drivers/usb/serial/pl2303.c | 13 ------ drivers/usb/serial/quatech2.c | 16 -------- drivers/usb/serial/ssu100.c | 16 -------- drivers/usb/serial/ti_usb_3410_5052.c | 38 +---------------- drivers/usb/serial/usb-serial.c | 59 +++++++++++++++++++++++---- drivers/usb/serial/usb-wwan.h | 4 -- drivers/usb/serial/usb_wwan.c | 45 -------------------- drivers/usb/serial/whiteheat.c | 17 +------- include/linux/usb/serial.h | 2 +- 19 files changed, 69 insertions(+), 314 deletions(-) Reviewed-by: Greg Kroah-Hartman