Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520557pxf; Mon, 15 Mar 2021 11:23:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdDxnQt83ldCE1RVBuEYzo6v2i4ke18mROr7/KSANaryxLzbt0sE+kC8hM6ILho0+vCESp X-Received: by 2002:a17:906:4e91:: with SMTP id v17mr25052040eju.331.1615832588396; Mon, 15 Mar 2021 11:23:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832588; cv=none; d=google.com; s=arc-20160816; b=lG/hFeRbhJgoK+xZMDlPXCuNwlWlr8Hi6u3c7Jj6eBqKZNm+6pe6jeX4QgrSU7FcdB tyxw/gFudlbOMha19yZbjv34833amgkGchs2UblaawzsTNbx71UYa9TWPqLr1nmF2IDo x83rMez5IUr6jn1PHtEJNxHSCdqUNMmS4V8EnDBxWhatdl6F+33bGoV3rdtP8xmygRDh xNrer6giZc5w+ref6lbZMFBz+bcmPzpdWjGtkfCXk9fobGjF9Lw0kz7/QaM1xIvRPHnt f8E7Pop9UMdEW+zEWOIwRumsA/iZHGNPc31d0neROo1O8em1PbWpFBHJmt2Q1oFZNip+ ebbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z6twH4799/EbXaQFD5dJXv1rQQchb1Cuq9JcF9Idu6Y=; b=R8SgrqBdagyEBA/v8mXjA0O/2lwkwmwbSzOKu33H24dUCORPK7zHbju8N2aqHk+KJ/ lg5UZW3vNOoY5alL5Nw1TdcxAbRrwH6kj/J7Kqr61UVN7f2dIyr6rhz9YW+zjfNVL0gA iOWJqzEj0XNgRfAItmY8A32eEQidMjxVYgwVdM7DblLVASGGZue9qmz+wqSV3HiGFn8b cJEKHCcNvcOPRPR6nnjedFEWtJW5Ta88oxgt03k/0Go6R8CoKWcVU2zUWD4+1ciu3Lnk 4XzzY/LYrT1gt29XZmTkdFJqRU6DvGQQKymCZDHCQb0/3VCkroAvqrwKL6S/H67nK4r9 TwwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OuBnPI0Z; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss17si11654538ejb.678.2021.03.15.11.22.46; Mon, 15 Mar 2021 11:23:08 -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=@linuxfoundation.org header.s=korg header.b=OuBnPI0Z; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237991AbhCOOW2 (ORCPT + 99 others); Mon, 15 Mar 2021 10:22:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:36764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232923AbhCOOAL (ORCPT ); Mon, 15 Mar 2021 10:00:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AF6EA64F92; Mon, 15 Mar 2021 13:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816796; bh=ZVveNTZOC9To2IBySsO7Ne8khllO+LB55e5NlwO6B6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OuBnPI0ZC040qmh1Q2qB6h0JqVtLIghy7+eNc5wDVFPP/X9cdQ9Mh+nP38rIr1OfN A7ntKdLEMSGygZu9aG5GfYsNzPbn027onGJ5NqO8vSOGbChTmYM4KyRKHvP8Q/XM2U JExM6F5BkadWZ4d/6Waoq7ejOhVRbo4v/KK2jI3I= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Niv Sardi , Johan Hovold Subject: [PATCH 5.4 116/168] USB: serial: ch341: add new Product ID Date: Mon, 15 Mar 2021 14:55:48 +0100 Message-Id: <20210315135554.170665466@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Niv Sardi commit 5563b3b6420362c8a1f468ca04afe6d5f0a8d0a3 upstream. Add PID for CH340 that's found on cheap programmers. The driver works flawlessly as soon as the new PID (0x9986) is added to it. These look like ANU232MI but ship with a ch341 inside. They have no special identifiers (mine only has the string "DB9D20130716" printed on the PCB and nothing identifiable on the packaging. The merchant i bought it from doesn't sell these anymore). the lsusb -v output is: Bus 001 Device 009: ID 9986:7523 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x9986 idProduct 0x7523 bcdDevice 2.54 iManufacturer 0 iProduct 0 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0027 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 96mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 1 bInterfaceProtocol 2 iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0020 1x 32 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0020 1x 32 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 1 Signed-off-by: Niv Sardi Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/ch341.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c @@ -85,6 +85,7 @@ static const struct usb_device_id id_tab { USB_DEVICE(0x1a86, 0x7522) }, { USB_DEVICE(0x1a86, 0x7523) }, { USB_DEVICE(0x4348, 0x5523) }, + { USB_DEVICE(0x9986, 0x7523) }, { }, }; MODULE_DEVICE_TABLE(usb, id_table);