Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2154823ybz; Thu, 30 Apr 2020 11:51:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJ07dVr9SFiex5dRCH7EFuqOMFqs/IDXbEv6YZ6BUU4hYeyN/mO1/jUk11QBWS/ldQ0pog0 X-Received: by 2002:a17:906:4907:: with SMTP id b7mr3860056ejq.279.1588272699182; Thu, 30 Apr 2020 11:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588272699; cv=none; d=google.com; s=arc-20160816; b=I9jvhNSWhgcNx7kHGP+Y8yNHL4aK0XE0mJH10J1BCvkheH3FXW9DbpfUSkSZGdFDm4 8y2GV+aEMzQs0HAwe9EsYGNLFzVtWLfYDe4dsTLEKneRXBsPaUzxWaJ2BqNBP423rseH Mw1HREQOtFOlaXzQl4J35hsB4PPj6HRPaGCZj0Z6VPNih/ioo1phO9abX/9nglHH2diA xQY+L7wKnFwWbpmFffr0Thr3fjXFz3oG9qshbXOJoiY7IVFbIzeq6fFfQj2+V+ZmS23v HG27RyNIsZWGAaUeOYBO4WKN4UHxiFZs367dIO/o8XmjvTQAgJijsSs1Ap/YSCoxo9Sr cecg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=JdjC02wey+oYDVvJSBKkeaUpBozR8IzzksO3xMmKFDY=; b=ruTEDG8atIUqWX7GLMD6389HCJP7s0r18xgFs4q3BgNONd5WYdXczN+ACF/OCIra6c UafQz6MY5dhQHMiDe6rbXQJW+AzR1Qgcv23jPw1xqC4ZgQK8ZjRzsuIe8e8UFUpsQM3L H/g+7CZUOS1HXnLZzDjtZoJq1g55cEvMAqZQfpwD82UyGdIVCC28DRkqn3Df/cDu5npF nQ0yEsE/ZqXiS+SzJ+LjSyHw1bmK5uOtSH5r68VYnDJ8lq8If7DxeGyE2Cw5m1Fu4pel csZcZAHMrpoT5irXLfI5foMs+n62fzOIyuOxZIZd7plEuSarGzcW506rHzolqdfjPDLu 1pJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AioxeAcM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si259345edf.455.2020.04.30.11.51.15; Thu, 30 Apr 2020 11:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AioxeAcM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbgD3Stf (ORCPT + 99 others); Thu, 30 Apr 2020 14:49:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:33082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726660AbgD3Stf (ORCPT ); Thu, 30 Apr 2020 14:49:35 -0400 Received: from localhost.localdomain (unknown [157.46.61.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28A612073E; Thu, 30 Apr 2020 18:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588272574; bh=Ghi/KHsDImSD6RDtlegKVP3dkhovtpgHLcqczBeaYvg=; h=From:To:Cc:Subject:Date:From; b=AioxeAcM8h0Tn1CANfolz9h0us9eCpARqAQlrHAeCU+h5z8Rt7SQ9pZj0+J3j0X1s q3WeBnsJpWQCpobdVhuK57UwyGh7sXXJsRPi5K4cmqKy4i96iScAITXVeY1RXLaHuV NqTRInYBIuMPXREqTwMvAfrFd/eYAhAGjOfFOcnM= From: mani@kernel.org To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, patong.mxl@gmail.com, Manivannan Sadhasivam Subject: [PATCH v3 0/2] Add support for MaxLinear/Exar USB to serial converters Date: Fri, 1 May 2020 00:19:22 +0530 Message-Id: <20200430184924.31690-1-mani@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Manivannan Sadhasivam Hello, This series adds support for MaxLinear/Exar USB to serial converters. This driver only supports XR21V141X series but it can easily be extended to other series in future. This driver is inspired from the initial one submitted by Patong Yang: https://patchwork.kernel.org/patch/10543261/ While the initial driver was a custom tty USB driver exposing whole new serial interface ttyXRUSBn, this version is completely based on USB serial core thus exposing the interfaces as ttyUSBn. This will avoid the overhead of exposing a new USB serial interface which the userspace tools are unaware of. This series has been tested with Hikey970 board hosting XR21V141X chip. Thanks, Mani Changes in v3: * Dropped the check for PID and also the reg_width property. Changes in v2: * Dropped the code related to handling variable register size. It's all u8 now. * Dropped the header file and moved the contents to driver itself. * Added Linus's reviewed-by tag for gpiochip patch. * Added PID to gpiochip label * Dropped gpiochip for interface 0 Manivannan Sadhasivam (2): usb: serial: Add MaxLinear/Exar USB to Serial driver usb: serial: xr_serial: Add gpiochip support drivers/usb/serial/Kconfig | 9 + drivers/usb/serial/Makefile | 1 + drivers/usb/serial/xr_serial.c | 821 +++++++++++++++++++++++++++++++++ 3 files changed, 831 insertions(+) create mode 100644 drivers/usb/serial/xr_serial.c -- 2.17.1