Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4485540rwb; Tue, 6 Sep 2022 08:10:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mNr14vlJWyXJHxUpgTCKjGQQaL2Suv9vd2XK4fzn33mOfzSN/NtgyP1BrzkvpG5no9QyK X-Received: by 2002:a63:8b44:0:b0:434:bbab:9dac with SMTP id j65-20020a638b44000000b00434bbab9dacmr1937863pge.10.1662477007287; Tue, 06 Sep 2022 08:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477007; cv=none; d=google.com; s=arc-20160816; b=n0Bk5Dqadfzt2NJN7eKhGfpclNaVgZKdp3sMYcthkBPybvzEpDNwUIT78FbR4ImlX3 r1A23DycJnQegDdG2qqtQdr/I5edSSbdl1ZtzNVWKMUH3BkVItA0E2tWn2wLERmg2QOP vPVgJKGf8xFiLcCZyDcmLJwBLAvTtkmSccLB2uuTMzgTsL2R42LqC4OwwxLTlvM2b7tk ZjR67lXsKebRqZEcW3sQhVCEw1dJ8tBIvkro1Ejghp06H4YpAjPk7oqnly+Uw/Zncua4 HJqWwxVr1itVaRfAWdr6BhCJRgDdoOQU2TmCp9Ps+RaLkvzBl4QQ+LQTonKYp1yuSqey Meeg== 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=4RsK/6SHb+Pn2L1OZWghq3TbMYYfvOUuTyibgWS6HC4=; b=CtW2v+TU92Jtnj73yDiw3QnUbFSLjeK3zC1dWCP5vpTScUTIKxSUo5Tb6cFFCp6iLv +bYmGeFds8n2w48x2oHt/AZZl+0b0GEyVZOzQUO8HMF9A0lA7VPVN9z4NS/b2Uavhvqu 8dPE0BjAtfeivRzqkMoWaYQKEUck0lS7d+9luX/xffYqequ2Rrr5EgodKtTrmCNxOhW9 1FuQOU4rOZH0ZP5AJmISlNpT9Q2nYqkGsPYXiLNibjS9iY6axm0GmH/CSBdcrZnlsjn/ K0xMA1E5WpFLFBvSAiZdN/7lG3F0kc/GGJHYofJFk6jMNFQ+PufU9XZdWDaQot7SDVVx PocQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nz4pTrEY; 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 v63-20020a638942000000b00434b5250df7si1506938pgd.548.2022.09.06.08.09.55; Tue, 06 Sep 2022 08:10:07 -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=Nz4pTrEY; 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 S241618AbiIFOSD (ORCPT + 99 others); Tue, 6 Sep 2022 10:18:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241720AbiIFOPa (ORCPT ); Tue, 6 Sep 2022 10:15:30 -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 9B63589CE0; Tue, 6 Sep 2022 06:49:16 -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 1C3AF6153F; Tue, 6 Sep 2022 13:47:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BB7BC433D6; Tue, 6 Sep 2022 13:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662472039; bh=KUA5BviElOlwqJdSr6J9VHAUb9IQtTM44MZGAn649LA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nz4pTrEYwUqrxg+medrPQHHKCWv8hS42JowJrsLGrXskDjIs0IY/U8m2lm1RqnRnH 9Zxh0DzqaRYAwSl5l1lRFr7Z9ltmlOsqRbchQwHzlrxQdQGwG/MZfFnGS+ITFrNmdN RiYhiTB3nf/6ivBcBDb1BNmCKPnVV1uGKEu0epHY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thierry GUIBERT , stable Subject: [PATCH 5.19 126/155] USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) Date: Tue, 6 Sep 2022 15:31:14 +0200 Message-Id: <20220906132834.778536664@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@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 @@ -1810,6 +1810,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 */ },