Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3354356pxf; Mon, 15 Mar 2021 07:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEtvyLVNY3SAAoG+t79UhWMiCSLXhyofp08suhAeKonGA08xOOJmvZDhK7+r6lkB3huOWb X-Received: by 2002:a17:906:4e17:: with SMTP id z23mr24226144eju.439.1615819816624; Mon, 15 Mar 2021 07:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615819816; cv=none; d=google.com; s=arc-20160816; b=zr8YpAJci7a6JSWbkPSTpgdUqt5uWvUYhlCKjEhQMIHccc027PKT0+Rx8GxVJI1jBJ rCsaQux0f8/vQ7WnmqjIq125yJjwvR8wKX44R2EH2E0IZaehAxoWC5eEWZnajlAg6d4r QAvW+M8IzVKBxuKpsY6MbcX6jJVUuGYUaI33eH9ez5ALDwKqxtl4y8+urZS5I+PAchJF i2bExp/daWF+fSRAr1N0lhKAla5CjqdNjPoUFrMiGCfE43pzxcOfNH1lvDayY4SeTiJC 5J54LgJ+AwGogxWAMYmqzNIWRlqrHImJ+dKJZfbN3i/+9sdXfyxB79e0nGU0jC3K5DVN Kn1g== 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=b0jxFvYWp9v3Op/dF5fjjg2LQmwQh0xEd+rP+haA2ZRFlJ4qKtz/4+xT7fN1kIKFem tQKLC1lGJG6GPxRT9rgAV5pGZhd85uXGRF3bxy7NauwGOUzRbbAk70dfgY+TasQXGgRX cp93Kzldxsh423ZymtrZ8FBYVMeXPm+Blmd96dA1DpX4ahHL9d5QtZZBuAJc0JrUrdH7 mkW4JP79RHInQ7SsTLiyw0vNdsdUPn1Sh7fPl96WZcuQ5S21m08n2saZ+kf8PEd0yzt5 1iE0it4zQYhLgiMFYVQoEwEwc0y2jdv8HNLSS4OHMNPn6mhVBMRYAs0UVShUvT1GCfXc UiTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h5SW0cb7; 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 p10si11145704edm.261.2021.03.15.07.49.53; Mon, 15 Mar 2021 07:50:16 -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=h5SW0cb7; 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 S240868AbhCOOsJ (ORCPT + 99 others); Mon, 15 Mar 2021 10:48:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:49216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbhCOOCm (ORCPT ); Mon, 15 Mar 2021 10:02:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E591E64E89; Mon, 15 Mar 2021 14:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816960; bh=CS12a3USvFmXpMRngpc4W4VRWePXxRDT41MvuHo5LXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h5SW0cb7A5vdHPfgjbY8vMFpczeS3CHUkQYeE9RxtRf6Yv7v7WT3RXWPcxRsBJ4L0 8pOCXLdYCK3UMoKUu62Z5hzmjnJDyp6SuuWdwhb6tKmvwIgvENV+YOG4dErMLRsbWX c6lpr/1jDyQlai5DQcMejA3CD9r0pjKJXs6OKM3A= 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.10 213/290] USB: serial: ch341: add new Product ID Date: Mon, 15 Mar 2021 14:55:06 +0100 Message-Id: <20210315135549.155742708@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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);