Received: by 10.192.165.148 with SMTP id m20csp4193726imm; Mon, 30 Apr 2018 13:35:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZorIl7BVlXeV4WhPXoLahYcMzwwKMxHp9y3SoTzdlOsPeBk5CFSNH+5+YwaRO/riufJQHXh X-Received: by 10.98.30.2 with SMTP id e2mr756304pfe.212.1525120524055; Mon, 30 Apr 2018 13:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525120524; cv=none; d=google.com; s=arc-20160816; b=0McJl463yksddvnCreMGgdFxVzQXFnlmtyRmtSLVXFKvDTGkFKQ6Ykwrj3I5r5vBAV Y+FZP4BiMlnG7S7J0XKh5y2lUBmGfqzzEsz473Jt6E+3LceKBwdcrYhVtTKny7SQh5Bl 0BQ7nEBMl5q/4Hno2DRqRN7sHnx1goD4AZKyBkN/55BfPym/ZBCegevilSKBxh4pGVfq 52s0v7M2qMgNxEIbtaMaTGOVne1x0F9Oyk8zChTeth4Xq4abER78aqqPP4RMeHN20gdo 9NKzBy8+HPSdhbLl4cos/7YyQ5cnEdthhrpo5bva6yTOWtXnBvvU4LK3sPUN/b2kpnRU kpgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=JBLwXAL2LeR4MxHiIJo2Si8W0UTHdGX146Ga1ehQG9U=; b=r4Jf6pxLAybHT5fFR3iVFi7vn24QINuYkwINjeJURBXk6jB5PRhgtymCbEtLCIYO+o Z4TvUNz1N8Qi+PsE8n/G+CndXsZdl15qB0EqFsnQy67ntGW382ys5h9Znav3Dw4t0R1e mzRz4AwyEJtxsG0ho6DXhNs+XasZCrAaK/fdecehq8kszUis0o9AyqM6bDGhQK9SmcBB EODk6uIb14+JlC6xLbW5iOpmV6B679k3HBMTcYxN4Ohh9Ze/NGsNJhb8QS21DVmfeM1J oDWss6s6KGupNyeC7obHZeo1A5HhfKuQ2/k6wCR5YHhBvi6Bsm8T4acAW/sHRjRopmUg K8zA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5-v6si6714240pgn.117.2018.04.30.13.35.09; Mon, 30 Apr 2018 13:35:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755459AbeD3TZ6 (ORCPT + 99 others); Mon, 30 Apr 2018 15:25:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:58766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751195AbeD3TZw (ORCPT ); Mon, 30 Apr 2018 15:25:52 -0400 Received: from localhost (unknown [104.132.1.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD56A22DBF; Mon, 30 Apr 2018 19:25:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AD56A22DBF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Collin May , Johan Hovold Subject: [PATCH 4.4 07/44] USB: serial: simple: add libtransistor console Date: Mon, 30 Apr 2018 12:24:18 -0700 Message-Id: <20180430190946.631305721@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430190946.093694747@linuxfoundation.org> References: <20180430190946.093694747@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Collin May commit fe710508b6ba9d28730f3021fed70e7043433b2e upstream. Add simple driver for libtransistor USB console. This device is implemented in software: https://github.com/reswitched/libtransistor/blob/development/lib/usb_serial.c Signed-off-by: Collin May Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/Kconfig | 1 + drivers/usb/serial/usb-serial-simple.c | 7 +++++++ 2 files changed, 8 insertions(+) --- a/drivers/usb/serial/Kconfig +++ b/drivers/usb/serial/Kconfig @@ -62,6 +62,7 @@ config USB_SERIAL_SIMPLE - Fundamental Software dongle. - Google USB serial devices - HP4x calculators + - Libtransistor USB console - a number of Motorola phones - Motorola Tetra devices - Novatel Wireless GPS receivers --- a/drivers/usb/serial/usb-serial-simple.c +++ b/drivers/usb/serial/usb-serial-simple.c @@ -66,6 +66,11 @@ DEVICE(flashloader, FLASHLOADER_IDS); 0x01) } DEVICE(google, GOOGLE_IDS); +/* Libtransistor USB console */ +#define LIBTRANSISTOR_IDS() \ + { USB_DEVICE(0x1209, 0x8b00) } +DEVICE(libtransistor, LIBTRANSISTOR_IDS); + /* ViVOpay USB Serial Driver */ #define VIVOPAY_IDS() \ { USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */ @@ -113,6 +118,7 @@ static struct usb_serial_driver * const &funsoft_device, &flashloader_device, &google_device, + &libtransistor_device, &vivopay_device, &moto_modem_device, &motorola_tetra_device, @@ -129,6 +135,7 @@ static const struct usb_device_id id_tab FUNSOFT_IDS(), FLASHLOADER_IDS(), GOOGLE_IDS(), + LIBTRANSISTOR_IDS(), VIVOPAY_IDS(), MOTO_IDS(), MOTOROLA_TETRA_IDS(),