From patchwork Mon Jul 5 08:20:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 470380 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=-15.4 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 B5542C07E9E for ; Mon, 5 Jul 2021 08:20:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A694C613F3 for ; Mon, 5 Jul 2021 08:20:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230309AbhGEIXX (ORCPT ); Mon, 5 Jul 2021 04:23:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbhGEIXU (ORCPT ); Mon, 5 Jul 2021 04:23:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D1CE761447; Mon, 5 Jul 2021 08:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625473241; bh=LFyp+REsgurXPkNsy24a7z98TwA4hJdMX8wTWIyMHYI=; h=From:To:Cc:Subject:Date:From; b=jHnVtFcWj6+aYiacfOiLgjmuzr/pP+FzjjT2ElJMLh5NgqsMZODGWQ9uv2VEkWTdN QiW8bd3Nz/3fOMW21eS22ZpnYPm/H0yrNAXNQSS+TSH0pwCbsQ1ysalm1IUj4yOJQ/ znaxZnbTFtnj2qJXh/K1RU+/F6AdkW2CLibxHPZc7JnearEqTqzLEPkP12n2pcMCpP +C/rIklajMRqwkYE324NpBG1XPFWnZiIEmScqC8baKVipRfUxH1Vg94agoykBaCHKt 7sL8TN/InJiyJs6peCEigv0KaFReUvqNyAeCY1pKzt0h+jbunMf/D0Vkaw8Dg/EwQY EIgNR6hJrp5IQ== Received: from johan by xi with local (Exim 4.94.2) (envelope-from ) id 1m0JqE-0004ln-9v; Mon, 05 Jul 2021 10:20:35 +0200 From: Johan Hovold To: Johan Hovold Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/6] USB: serial: cp210x: fixes and CP2105/CP2108 fw version Date: Mon, 5 Jul 2021 10:20:09 +0200 Message-Id: <20210705082015.18286-1-johan@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Here are couple of minor fixes and some cleanups related to the recent regression which broke RTS control on some CP2102N devices with buggy firmware. In case we run into another one of these, let's log the firmware version also for CP2105 and CP2108 for which it can be retrieved. Johan Changes in v2 - keep the special-chars error message to make it more obvious that continuing on errors is intentional (1/6) (Greg) Johan Hovold (6): USB: serial: cp210x: fix control-characters error handling USB: serial: cp210x: fix flow-control error handling USB: serial: cp210x: clean up control-request timeout USB: serial: cp210x: clean up set-chars request USB: serial: cp210x: clean up type detection USB: serial: cp210x: determine fw version for CP2105 and CP2108 drivers/usb/serial/cp210x.c | 77 +++++++++++++++---------------------- 1 file changed, 32 insertions(+), 45 deletions(-) Reviewed-by: Greg Kroah-Hartman