Received: by 10.192.165.148 with SMTP id m20csp4178928imm; Mon, 30 Apr 2018 13:17:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoWAecwIfEZ5jKklXO3TnsQq6q4YnFIRBnrjTiZ3Zxwz3KVTfsffZzmYAWIkjRIvVEjiM5X X-Received: by 2002:a65:4b02:: with SMTP id r2-v6mr10916575pgq.82.1525119436350; Mon, 30 Apr 2018 13:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525119436; cv=none; d=google.com; s=arc-20160816; b=YVJ3U2eXwQ8d26If5hIiLGDEjwVbBmPQ3QNnrglAj5smEJ5BFC/KLiZT0TkRd8Bbgm HE/QcNx5tKr4Btd1/wF3+68r3d7XdHpMalW/+s/HSyTH/HZzp3K1kyVvhy+prBo+q9l7 sILGHqlWYp2sRbYkUzsTeXwccDyFO56+riJ1d33VaB0n62mpYGUNqSoAD9D2QgDmQ/G0 kySHif0OjtEbut1Ga/Hoo28aiL+PvmOe193MqiScadjhh2F/2PApX09KrLzUgavqN6lF vDHGyvUFgdJsmMB7i24v0unKP0AfekrGXIr28NYqAIE+KqNrga5gmSXwyTtCSDKYYysu 0pKg== 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=XuR6C0seD3YM45MOFQge7KzKTWlkBy2owcBRO0n/ZME=; b=lX4rt/+oJoh/UTprwyhOjncCS8bqFI8YiRPukttycJLBSUVksBWVaGVxzTkUF/U+w6 fnGK/SHxKcQlhx37q0mcJvVhTJpzSROPD8ImDnSmU76N4tQs+RFPe7vkkhdcXPddjeww MB0xY2NaC88CgOmohyTDgpBMkeAQiQAaqNmntNuJMgsgdC5UF6IGIhX50AYyt39I02R6 H+8F5KQY6KVx3OYYTTMzvEChgM44/fo+SxiN2IF9xjSBDVjvrP+6Q+r5G0gDo01fyWkW EsDWfusYkh9EJ50An1Q3EQbSuKsq7rE9sTUO1eon0D03q+EwVd/J9MZ2zKGgIf9CVGnx 3ueA== 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 a71-v6si6648745pge.159.2018.04.30.13.17.02; Mon, 30 Apr 2018 13:17:16 -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 S1756057AbeD3UQu (ORCPT + 99 others); Mon, 30 Apr 2018 16:16:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:33002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755859AbeD3T07 (ORCPT ); Mon, 30 Apr 2018 15:26:59 -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 3E69122DAC; Mon, 30 Apr 2018 19:26:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E69122DAC 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.14 15/91] USB: serial: simple: add libtransistor console Date: Mon, 30 Apr 2018 12:23:57 -0700 Message-Id: <20180430184005.011250398@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430184004.216234025@linuxfoundation.org> References: <20180430184004.216234025@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.14-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(),