From patchwork Tue Mar 30 14:39:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 412201 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=unavailable 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 2B75AC433E6 for ; Tue, 30 Mar 2021 14:40:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2B13619CE for ; Tue, 30 Mar 2021 14:40:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbhC3Oj6 (ORCPT ); Tue, 30 Mar 2021 10:39:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:51074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231859AbhC3Oji (ORCPT ); Tue, 30 Mar 2021 10:39:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2578A619C8; Tue, 30 Mar 2021 14:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617115178; bh=vDIpePSNo+XqtVznFzgze6DPaKKSmI8fQ1aqspWp1U0=; h=From:To:Cc:Subject:Date:From; b=TMfN4ZKrFb8F/SkFj4QUSUJ7WpqoXrlYCdOAwPjX02/6eWO8G0vqD4wfp95yu2HvQ oSpnxQGABTrNC2kgpIHsfcp8p7Wsa1rYFoaHQ7xYZkcd82/zha/SZo463+cNebhkOd T1kJwRqkJBR/wpxS6D1izdeMURF/bD7eg/3GkP5arS2ZkQK95zsk5vHh/pSwYUUfjc JIb234w70F6yf2BifRZf6lY3eeBAjzCN+aEcMUKTwn0qVR5toFToWN44d6EvkVR0jb BcVk56GSF0VRmzAC+35rgbVxTPvOTa4UaTx6div++WGsbKwfhACDsyzTRRqfiCZzcd XAe02v5zJzEnA== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1lRFXD-0002PD-Nc; Tue, 30 Mar 2021 16:39:59 +0200 From: Johan Hovold To: Johan Hovold Cc: Mauro Carvalho Chehab , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/12] USB: serial: xr: add support for more device types Date: Tue, 30 Mar 2021 16:39:25 +0200 Message-Id: <20210330143934.9197-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 This series adds support for another nine models of Maxlinerar/Exar USB UARTs to the xr driver. The various models can be divided into four types: XR21V141X XR21B142X XR21B1411 XR22804 with different register layouts and features. All types can be used in CDC-ACM mode but further features such as hardware and software flow control and in-band line status are available in a second "custom driver" mode. The fact that hardware flow control is enabled by default in CDC-ACM mode also prevents using the standard CDC-ACM driver in cases where the hardware engineers have failed to properly connect the CTS input. The currently supported XR21V141X type stands out from the other three by not being able to accept CDC requests without always entering CDC-ACM mode, requiring a different enable/disable sequence and by using a distinct register layout for certain functionality. Expect for the above, most differences can be handled by simply using different set of register addresses. Note that this series depends on the recently posted multi-interface-function series. Johan Johan Hovold (11): USB: serial: xr: add support for XR21V1412 and XR21V1414 USB: serial: xr: rename GPIO-mode defines USB: serial: xr: rename GPIO-pin defines USB: serial: xr: move pin configuration to probe USB: serial: xr: drop type prefix from shared defines USB: serial: xr: add type abstraction USB: serial: xr: add support for XR21B1421, XR21B1422 and XR21B1424 USB: serial: xr: add support for XR21B1411 USB: serial: xr: add support for XR22801, XR22802, XR22804 USB: serial: xr: reset FIFOs on open USB: serial: xr: add copyright notice Mauro Carvalho Chehab (1): USB: cdc-acm: add more Maxlinear/Exar models to ignore list drivers/usb/class/cdc-acm.c | 14 +- drivers/usb/serial/xr_serial.c | 727 ++++++++++++++++++++++++++------- 2 files changed, 580 insertions(+), 161 deletions(-)