Received: by 10.192.165.148 with SMTP id m20csp4158888imm; Mon, 30 Apr 2018 12:54:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqfChKEtcqxIz7N/kQCp32BuFJheypqjgKkmI8d+HWjfZ7vnL79gMW3CrNr3KXcigul1ToW X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr13203092plc.368.1525118056929; Mon, 30 Apr 2018 12:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525118056; cv=none; d=google.com; s=arc-20160816; b=JK0abuiv53xC+VC86uJmonns/gN1OP8cBuTLFeiKyBZ5YSe0ERDm4IpHoTR5++iMJv jbJX1dZ2V4VDKLwaKKMpjpgOC4wYZ6lOGuN0yJSlgtG/9/UV41Y3+6bEl9PClBTRzrSP 3MJ7fyDgR+iyBJmL/hVf9yHyEgcPF/3zzCb3yygOxpgUB1jtjJQ4/iejywbb7e2X/jUL dF8Wo/2cIfIdzjGk8Vo9aYn7Z5cupdKvvLiLbjjNFedjxdYmwemlNl3ast9yntR0jGsf k/tsn5h7iOK3kJi2TVt1q+jouaG28pdrGLEec4LnJY7siE/I9VbEWvDyjHA+iiwjgOXC 7IcA== 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=CV+7V1dPUUrAyYhIQfdTovQDop0dybELtIZmCv8Et8E=; b=djxCcmj+n4yvNTIb5f4+tfNH8+O6ZnZePouXNIXV8vWqxwcSUsnKD7nUvjTGglhLLA I6gibfo7HxHry51UB+0Uwf089EbRS+4SrBGeWsNLzE6j61G9tc3+TJMKt9899g3sf5QE B+t+Q/jYK+u6lIbvkLfgrxlyjBKK6vBpw/wusXP9+60efD3oP4oXV2HGoHRxeN0NIK+q 3j68i1stDiok6aQSBuXrLlvazaXj7DoVgAimLz/vPp30hmeNZJGDx1ov1Za/SJarUV0F 72rOfKy3PI6HgkNSlpmbggU6YuttyQhW9Lol4HuLf13QaZE6kxKvIyE8Vcf8AmIUg8/J GuLA== 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 r74si7987386pfe.168.2018.04.30.12.54.02; Mon, 30 Apr 2018 12:54: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 S1756289AbeD3Txx (ORCPT + 99 others); Mon, 30 Apr 2018 15:53:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:35086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756113AbeD3T15 (ORCPT ); Mon, 30 Apr 2018 15:27:57 -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 A211622DCC; Mon, 30 Apr 2018 19:27:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A211622DCC 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.16 016/113] USB: serial: simple: add libtransistor console Date: Mon, 30 Apr 2018 12:23:47 -0700 Message-Id: <20180430184015.766207178@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180430184015.043892819@linuxfoundation.org> References: <20180430184015.043892819@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.16-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 @@ -63,6 +63,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 */ @@ -110,6 +115,7 @@ static struct usb_serial_driver * const &funsoft_device, &flashloader_device, &google_device, + &libtransistor_device, &vivopay_device, &moto_modem_device, &motorola_tetra_device, @@ -126,6 +132,7 @@ static const struct usb_device_id id_tab FUNSOFT_IDS(), FLASHLOADER_IDS(), GOOGLE_IDS(), + LIBTRANSISTOR_IDS(), VIVOPAY_IDS(), MOTO_IDS(), MOTOROLA_TETRA_IDS(),