Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520008pxf; Mon, 15 Mar 2021 11:22:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxhLyViSd5j+tmom4nOmeefmkdRoEx+wEQXwgMsOfAJnn9gJ34UgHRk1bVJiuQeBeXiKa5 X-Received: by 2002:a17:906:fcd2:: with SMTP id qx18mr4358250ejb.327.1615832538488; Mon, 15 Mar 2021 11:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832538; cv=none; d=google.com; s=arc-20160816; b=wCFgx0xDVczZZ3VNwiXuUn6DR2MAxjkFOqMQgQwnH+N0WY7lB2i8jzhdMHaAPg0H2D NJiwYAPMJxHoAhDIAsvDnPBPuKugMhl71zWrtmogmujAkG2XEkp30W9hXB/uX5qJtDHT AzS5ye//CfJWvhC0yfzYWSZrecKfLw3vzQREjChcdRh9JgXhifhp/csBitjg/Egc5rC6 TEIS/LVGnkED60Zzzm9cU/BwQKWPgaQVH6rDsnxQad6gDRbzfKnM8NkDBCwxIeONvQjK CnbvDJ61KlmvgyU5MDJdC/9NhBJaiY68IgJZEf1wxPgXud2b0NNSJ2sM9s1dpIW9qVlE 9TBg== 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=zYza0bWECTKoMCwq45fdxCOh7Uk//1AFdOJ7Q8XMVN4=; b=kxDbLnBMonYTFtX+ZpUe8QXN+uAJb5J1mxY8UH2s/lCo3gntQRe6t8PpxkL1KGg/Kt hgIEg43/INOZ8dkjENvheQQwtec28sWvZ0xnUSRQWlEVJQ72KCj0/091kbr7ZZM+aQ0i X9TXCfTLXN/5GT1JLUMB1nmMCmckr/65vuzMaIMl90ATqCPtvGIAxiPmOpXPM9BK5G12 0RHOK/eXSsZvEucu5TfUl7RR9wWj7VY6oht3Urur7UEaljGoVXGVt8gjK6ROwYzxsHGi /LgmRU+tKWkg3UagT9tYbYj7Ra8JLbI2DdQ79s6jxNXi7Bzk4GAJmpeqYDfqeVsarbQC Js3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HKkSq2mH; 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 e1si4893620ejx.431.2021.03.15.11.21.56; Mon, 15 Mar 2021 11:22:18 -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=HKkSq2mH; 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 S233744AbhCOOVb (ORCPT + 99 others); Mon, 15 Mar 2021 10:21:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:37612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbhCON76 (ORCPT ); Mon, 15 Mar 2021 09:59:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F03064F33; Mon, 15 Mar 2021 13:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816781; bh=c42JkQYN7HQ2N5lTs5IwB6B2pKsBaTe1kHYP5e7/gr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKkSq2mHIsHoMGsxm1KdHHNfsz3kP3Mau7Dkt0YA5QKS2m/3i4LU1HxGZyEP5PaVI E47YVRvGG2eO3anUjZTBKkuFftm1YCBNTbOfAaMzg7t/ldURPKuoK+UhSRCOJQIo5+ qZpofxsTSkqQy3xCtMWWu3obSNxUcl2o9vGu4m7s= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Niv Sardi , Johan Hovold Subject: [PATCH 4.14 57/95] USB: serial: ch341: add new Product ID Date: Mon, 15 Mar 2021 14:57:27 +0100 Message-Id: <20210315135742.149103409@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135740.245494252@linuxfoundation.org> References: <20210315135740.245494252@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 @@ -88,6 +88,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);