From patchwork Sun Apr 21 12:21:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 10910499 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 196E817E0 for ; Sun, 21 Apr 2019 12:22:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 084F92864A for ; Sun, 21 Apr 2019 12:22:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F01E72866C; Sun, 21 Apr 2019 12:22:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AABCF287B5 for ; Sun, 21 Apr 2019 12:22:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727494AbfDUMWC (ORCPT ); Sun, 21 Apr 2019 08:22:02 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36048 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727395AbfDUMWB (ORCPT ); Sun, 21 Apr 2019 08:22:01 -0400 Received: by mail-lj1-f194.google.com with SMTP id r24so8196842ljg.3 for ; Sun, 21 Apr 2019 05:22:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5DkDW6SbNK5EKHDNifOFjN3gc0DDOLciSSwYorFUw7Q=; b=KoIXvcAI8Asl8b8fW8TEDqUgOtnxjYNSq7B6NOSV0OKL7cGrGHp1rX3cBBhvdEpS42 xyEa3HWiER4e9zDKjn4ubQsKgLTTfnTeYaO5Pgg1tUEIaQgdNzqB+FaxjBl0qI1BFNa/ sSO8HLGdPAOfiIYKJULgbnQ2UkMz1H2B/SvcYqLB0rhMN4kcgToY0aOozLc+F87r3SDz aZWdy54BPeoFmX/98V3HGs8TYslp2D4uSbfzIO4yreJLaGnLqzO0B9YUgAYhvD8650CC FNdas9S8DF12fh0CSaOGK/YWfmZW2Y6ierNzEcPWLAuVSqt+Vk29qmwks0uQ7NYmIisZ tnpA== X-Gm-Message-State: APjAAAUXsG9bXmLFNjVi4u36VIks1y8Uxi0mhs7YGMGOyVG6NFJv4Rt1 CyURNB8/syFU7Xm4AJQj9I+Dfi5f X-Google-Smtp-Source: APXvYqxBewDOQ+V2X/Ers9gcghteLg1XhIlBQj9WAaISvWB0P+i7nR5cd9bFacasWIIj0z+E/4+AgA== X-Received: by 2002:a2e:b016:: with SMTP id y22mr7472174ljk.133.1555849319097; Sun, 21 Apr 2019 05:21:59 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id x72sm2447768lfa.58.2019.04.21.05.21.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 05:21:55 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1hIBTs-0006th-3L; Sun, 21 Apr 2019 14:22:00 +0200 From: Johan Hovold To: linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman , Johan Hovold Subject: [PATCH 0/9] USB: serial: fix initial-termios handling Date: Sun, 21 Apr 2019 14:21:45 +0200 Message-Id: <20190421122154.26465-1-johan@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A few drivers override the default initial termios settings provided by USB serial core, but due to a long-standing bug, the terminal settings were being reset on every (first) open rather than on first use after probe as intended. This series fixes the bug and cleans up the various init_termios implementations somewhat. Johan Johan Hovold (9): USB: serial: fix initial-termios handling USB: serial: ark3116: drop redundant init_termios USB: serial: cypress_m8: drop unused driver data flag USB: serial: cypress_m8: drop unused termios USB: serial: cypress_m8: clean up initial-termios handling USB: serial: iuu_phoenix: drop bogus initial cflag USB: serial: iuu_phoenix: simplify init_termios USB: serial: oti6858: simplify init_termios USB: serial: spcp8x5: simplify init_termios drivers/usb/serial/ark3116.c | 11 ------- drivers/usb/serial/cypress_m8.c | 49 ++++++-------------------------- drivers/usb/serial/iuu_phoenix.c | 4 +-- drivers/usb/serial/oti6858.c | 5 +--- drivers/usb/serial/spcp8x5.c | 5 +--- drivers/usb/serial/usb-serial.c | 11 ++++--- 6 files changed, 18 insertions(+), 67 deletions(-)