From patchwork Mon Apr 12 09:38:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 12197461 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 C30D2C433B4 for ; Mon, 12 Apr 2021 09:46:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91939611AD for ; Mon, 12 Apr 2021 09:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237440AbhDLJps (ORCPT ); Mon, 12 Apr 2021 05:45:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:55806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241138AbhDLJjB (ORCPT ); Mon, 12 Apr 2021 05:39:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3187961241; Mon, 12 Apr 2021 09:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618220314; bh=k1Sd4rAMYWMlDhLoHNPu6fYVil0U0AGrARqI1KH+i1A=; h=From:To:Cc:Subject:Date:From; b=oN1L6yOUFCM+nhAs28yUWvF3Alh78y1ibidFD8rR3TCxL0o58+S1Kg25pdoAPmuci QP3N5e1fdrDJr2UazzQAZEfU09WbKQmrDf+C/bXoDiii144GyX4A1x2fGcS3NN2dZB olbe5hBxHINXpwX4fdQDP5G87dD0bX3cwSZTqGvZcRikWXoZXaMmR7hbXz2aYrOKJL y3jntC9m8xU2EPS38ACOBsxwmNCk0KsxN0bptfKn+3xNZjFXBIrbP5KNlP2xeUxFsX 6X41ogDgToZMLHFH7cu27PzotkbhwpKjmiFD6Yqr4MtotMom/wGWgFTUiXGUJ7zPem Ss/beDiJ7NGag== Received: from johan by xi with local (Exim 4.93.0.4) (envelope-from ) id 1lVt1Y-0000Cg-76; Mon, 12 Apr 2021 11:38:28 +0200 From: Johan Hovold To: Johan Hovold Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] USB: serial: closing-wait fixes and cleanups Date: Mon, 12 Apr 2021 11:38:11 +0200 Message-Id: <20210412093815.736-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 The port drain_delay parameter is used to add a time-based delay when closing the port in order to allow the transmit FIFO to drain in cases where we don't know how to tell if the FIFO is empty. This series removes a redundant time-based delay which is no longer needed, and documents the reason for two other uses where such a delay is needed to let the transmitter shift register clear. As it turns out, this is really only needed for one of the two device types handled by the ti_usb_3410_5052 driver. Johan Johan Hovold (4): USB: serial: f81232: drop time-based drain delay USB: serial: io_ti: document reason for drain delay USB: serial: ti_usb_3410_5052: reduce drain delay to one char USB: serial: ti_usb_3410_5052: drop drain delay for 3410 drivers/usb/serial/f81232.c | 1 - drivers/usb/serial/io_ti.c | 4 ++++ drivers/usb/serial/ti_usb_3410_5052.c | 21 ++++++++++++++++++--- 3 files changed, 22 insertions(+), 4 deletions(-) Reviewed-by: Greg Kroah-Hartman