Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4460740rwb; Tue, 6 Sep 2022 07:52:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR65yq+CC5eXzkbdUjPu9bQurJS445tvAbYGcejb1c0Q+ITOIJd+VmeH+TP3/89sQ+q1ygeo X-Received: by 2002:a17:907:3fa2:b0:73d:79b4:2c9c with SMTP id hr34-20020a1709073fa200b0073d79b42c9cmr32405725ejc.644.1662475956164; Tue, 06 Sep 2022 07:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662475956; cv=none; d=google.com; s=arc-20160816; b=NZPuVeC+Pc97riEtSY71yxqT0hV0zp0dWWq0qjVg5Kf1jlF9CBr2X92UuewSc1haix 5lRIXEgh+dCPJtZNSkCbyqx/NcV+/ab3xbNVjDJH01Mahwpxsx13eX3y0d+0jQGVS/p4 RP7bO94+yjPDgvjhwUvNLp8FjJDQztv6Qsw72ZscKmdjZVDsnEn8uECcfbLxLOfL35YB 42VSMP/xAYb6wsd5zfrMglWbNaC5cZF+S23N7+YkVhTzRimCRS5fALdXw81DXlpETqYE PE3INf/p/x2oE8snexld4xpf85Wz6lNKz2vgNX3yzVtY/ZItrEKDgSPyWfTYQx9ci8Lx OKaA== 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=grb8+ajjNJQAEqWbGSs+bQwUfT/3WA8sBXF21TfQPBk=; b=pLHWyekDM8TkZ8WrbCgJEEd3jNjgu36y5UnrtMTu40MUzEnND5ankpkhk6vqPILJjw Jt6T5CX6nSiR/EjiaLu4S/EkQdKEjSkeod+hkGYTZzpbRWkDmYh51tx3EFhE07n55ADM j35IP+S4f0OgO6AW9TI+g4aoTUaaujCbJ21/o3AEAs/76B5RYNnSBqriGhQDSJzhhQ1n iZV2hzlBtdFXcoeB6KQQBYJJDE637aAr5FFyWiFGcN3uYmK2gOrF1Hjxivci/HOZ8VOd YIEpwYwWJm/QdDy+Jj5Qprib4SX9JYjJTWnhHBTmPft5i3LjuU1EwhWcba/MyVHHXlco +GeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wvn30BCp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr11-20020a170906d54b00b007308fcad6d2si9727230ejc.358.2022.09.06.07.52.11; Tue, 06 Sep 2022 07:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wvn30BCp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S240610AbiIFN5X (ORCPT + 99 others); Tue, 6 Sep 2022 09:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240674AbiIFNzD (ORCPT ); Tue, 6 Sep 2022 09:55:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D635B81B11; Tue, 6 Sep 2022 06:41:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 547316155C; Tue, 6 Sep 2022 13:36:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 576CBC433D7; Tue, 6 Sep 2022 13:36:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471366; bh=m7E2xCpUTwx5ukiumKOf6GtjH3UZa4HIGrQLeDUOP18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wvn30BCp7ilgeR9ZAe9j4k257OFN5BxySayEwwGrGFwHC2k5JV527s0pgejijmupD WMwQ7FYCQ+2OeMW/PkSDAfs/obr17kh4HRy54oZbjsd8WpkMsKGV0bTdujLrvXh9Li Dm3l3MwQ3L16GEcbnlAh747WCRr56BuA52V9PBBI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry GUIBERT , stable Subject: [PATCH 5.10 58/80] USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) Date: Tue, 6 Sep 2022 15:30:55 +0200 Message-Id: <20220906132819.474096379@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132816.936069583@linuxfoundation.org> References: <20220906132816.936069583@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry GUIBERT commit a10bc71729b236fe36de0d8e4d35c959fd8dec3a upstream. Supports for ICOM F3400 and ICOM F4400 PMR radios in CDC-ACM driver enabling the AT serial port. The Vendor Id is 0x0C26 The Product ID is 0x0020 Output of lsusb : Bus 001 Device 009: ID 0c26:0020 Prolific Technology Inc. ICOM Radio Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 2 Communications bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0c26 Prolific Technology Inc. idProduct 0x0020 bcdDevice 0.00 iManufacturer 1 ICOM Inc. iProduct 2 ICOM Radio iSerial 3 *obfuscated* bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0030 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 0mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 2 Communications bInterfaceSubClass 2 Abstract (modem) bInterfaceProtocol 1 AT-commands (v.25ter) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 12 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 10 CDC Data bInterfaceSubClass 0 bInterfaceProtocol 0 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 0x0200 1x 512 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 0x0200 1x 512 bytes bInterval 0 Signed-off-by: Thierry GUIBERT Cc: stable Link: https://lore.kernel.org/r/20220819081702.84118-1-thierry.guibert@croix-rouge.fr Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/cdc-acm.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1830,6 +1830,9 @@ static const struct usb_device_id acm_id { USB_DEVICE(0x09d8, 0x0320), /* Elatec GmbH TWN3 */ .driver_info = NO_UNION_NORMAL, /* has misplaced union descriptor */ }, + { USB_DEVICE(0x0c26, 0x0020), /* Icom ICF3400 Serie */ + .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */ + }, { USB_DEVICE(0x0ca6, 0xa050), /* Castles VEGA3000 */ .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */ },