Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3529069pxf; Mon, 15 Mar 2021 11:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytlV4xZjATES5f1y9QXMdQ5pUa7HIN/Wh2pFqP//azHPmkn+d7sHNfhYDNV/XIbPlEPT86 X-Received: by 2002:a17:906:d114:: with SMTP id b20mr24096717ejz.449.1615833295871; Mon, 15 Mar 2021 11:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833295; cv=none; d=google.com; s=arc-20160816; b=rCTdmLeRwjkRrpMpHJBKpDdtU7v0SqzvBgrTaovNiM26jaoX4IVMFejQI+hbmSFgBb QiQT/+xPWW4BowSpiOvIifMRHciuODSXB6nha0buzq2OQwRKoiVDYm4zemMDtOTajTU7 Km2gDYMJjkPPOsyS8Wd/7im6cg0RKK5aNkyq9P0Sk5Uyp5FyiF9u7gJSYtyFEbmUlF1K GuSPl6dBhCKk9rrjRDcxm7LCmJ6KwFhxxtpl9MSRy0mLdvQ8y+PYkfWD4PtkQEZ9CQzx JMTIYej/9DLNQ9aZnqNqTfCqU7OVwiLaSRE98zAqUw1dhK21LL4PgQu+e9dCVrAYbxWx 2ULA== 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=7S2HaWuxHAdZqwQp8SgXIWGYFRMQfCDWhh+yfxUBCvo=; b=yOh/lxWjzR/XY074oIEasOEWZxzivQR4hWsHI0yzVRxkW0c0lu/1FMdOCzbSErur+y iCP18FcMWUu0Foo24EMQ14hv7nYZfUj50dJknCZ67NdqbKBcrG3RIPq11IX8x5doqWBJ mrCPWNQPVr26q+82+eV8IFmuDf5Idex4QZpuU2QUJVu2RxZBT7ujNphoHy9uLe0QuWzM OFN+sDieqdZgGb6n+LK79X6OC4Qsf6/YvYtjUm9Fczu1IK0mqxS91QUW/ULpZAFwLHIJ EYz3er9gClmNSAdU3g+tbfswNbNweLfuLMg2d06FcRuBm3w/sa3lZJgDLhqGoe7AIrMm s0pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="VWM/yTZr"; 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 j7si11670271ejc.237.2021.03.15.11.34.33; Mon, 15 Mar 2021 11:34:55 -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="VWM/yTZr"; 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 S240100AbhCOOra (ORCPT + 99 others); Mon, 15 Mar 2021 10:47:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:48940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233668AbhCOOCR (ORCPT ); Mon, 15 Mar 2021 10:02:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A789164F23; Mon, 15 Mar 2021 14:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816929; bh=CS12a3USvFmXpMRngpc4W4VRWePXxRDT41MvuHo5LXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VWM/yTZrCoumjpJEK/q5X3zEZYkH4qo8irdyN1F+6V7y/xp2cutoIo5YE8+IH80DD Ib9AHNNDia0kFCUTyJqOYQTK7Znl61WSXKokPJHJVinMqNqY7+MaLxuUi2Qgwq3aYt Zb6AymwPkRfdGCd5pTnbkWdZM6E5W4F23hGeGqD8= 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.11 209/306] USB: serial: ch341: add new Product ID Date: Mon, 15 Mar 2021 14:54:32 +0100 Message-Id: <20210315135514.694610027@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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 @@ -86,6 +86,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);