Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4372618rwb; Tue, 6 Sep 2022 06:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/r+aBlFGbzvw13IiC9Kf8QdLvB744K1a3iA5bRM+6eacYdUePZJVxZDhvpIqU0+EBoQlv X-Received: by 2002:a17:906:8453:b0:73d:de87:e0e0 with SMTP id e19-20020a170906845300b0073dde87e0e0mr35544032ejy.133.1662471798273; Tue, 06 Sep 2022 06:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662471798; cv=none; d=google.com; s=arc-20160816; b=iXaORiHyxVSe3kgdzDq9+zDbqk4P4bWXKlW2ggqK2wB2SpX9vCO9fwkQeUJB3joD+u QvbruqXFFcVh+3d6va5cqQ/h1z5zoBhg6ik5VhLoNwGkOcXXjqjqZ6u8Gi3E/S3tMG5m B11FThY/72tIO2554TF/c5/+RfgnDiJwwenS0chUkJFLx2REgBaUvScIbBpTT2knZ971 VEGDPTM0HEss5G2TN/xHxLOiwtyGfv6kRlshzEhjAGq9MccbUhpuQIMY0QzuBsHu7MGL Jlz1IiQ1qNRy+ir/DVp+vZVDHc8lkgclfqf42jbBztL+7+fURdBZNjsb9ohrzqLyUbYk EKGg== 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=Nrv5+cMmAUzSvbbs46RwLlX/F5FFl0RfVO7siiDquWs=; b=Kd47c5ghwTvEnNifDzMyac1RI7SkBpjSFsFoiPu0yh9Vap1O1e46VoYqC1H/V5/XpO hNfts0jsc1yewr1/KNid5qzZGe10EqL6lpDRwsxZ1e9ynRCeKqxxRlscNchNJPqwxP1G OxvDlBEz0B9HfoixkQFq1wjuFkakZ3OOIYwVkC9KW7Y55yMoScKF5gNoQ8XmjXJGjx1y kPzMiv7vmGo2MsiW+JRcv/pKdeA9rBZ4nNPnmLhxI2NNFJS2FVrIHZ6aJBbIN9ee+oeH tg4yJffKL/ijdS1NGXkOJZb81/00fN19xja3OHVCB/NztY8LC1iHK0qQUfZsSQaG90uc f5Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pUMHJY4J; 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 f17-20020a0564021e9100b004482384c271si11679849edf.621.2022.09.06.06.42.49; Tue, 06 Sep 2022 06:43:18 -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=pUMHJY4J; 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 S233790AbiIFNkL (ORCPT + 99 others); Tue, 6 Sep 2022 09:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240819AbiIFNip (ORCPT ); Tue, 6 Sep 2022 09:38:45 -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 4CD082703; Tue, 6 Sep 2022 06:35:51 -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 73D8B6154E; Tue, 6 Sep 2022 13:34:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 831A1C433C1; Tue, 6 Sep 2022 13:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471292; bh=qOPfv6rN3G08Au0xWngt92uuyIDREJjHLEVh3jzqV5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pUMHJY4J4Imi33CuPVbC4Ak1v+nAWgB5p+uRwwqz2joxtWLOGD6NPZm3DXBrmSsP2 n8fXQGwY3rGYpudWhyXOcDa1YfyEKOflvGR1LZd4KyiOAb3XoJjnmxPhRmJnpsUjkJ VD07oAnd2E5KyDT8MYAuz/Yh9KfcnwT4l9BONMEg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yan Xinyu , Johan Hovold Subject: [PATCH 5.10 53/80] USB: serial: option: add support for OPPO R11 diag port Date: Tue, 6 Sep 2022 15:30:50 +0200 Message-Id: <20220906132819.257861371@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: Yan Xinyu commit 8d5fc280392735e4441b35de14f2f4860fa8d83c upstream. Add support for OPPO R11 USB diag serial port to option driver. This phone uses Qualcomm Snapdragon 660 SoC. usb-devices output: T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 10 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=22d9 ProdID=276c Rev=04.04 S: Manufacturer=OPPO S: Product=SDM660-MTP _SN:09C6BCA7 S: SerialNumber=beb2c403 C: #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option I: If#=0x1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs Signed-off-by: Yan Xinyu Link: https://lore.kernel.org/r/20220714102037.4113889-1-sdlyyxy@bupt.edu.cn Link: https://lore.kernel.org/r/Yt1WfSZk03Plpnan@hovoldconsulting.com Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -573,6 +573,10 @@ static void option_instat_callback(struc #define WETELECOM_PRODUCT_6802 0x6802 #define WETELECOM_PRODUCT_WMD300 0x6803 +/* OPPO products */ +#define OPPO_VENDOR_ID 0x22d9 +#define OPPO_PRODUCT_R11 0x276c + /* Device flags */ @@ -2155,6 +2159,7 @@ static const struct usb_device_id option { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1404, 0xff) }, /* GosunCn GM500 RNDIS */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) }, /* GosunCn GM500 MBIM */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1406, 0xff) }, /* GosunCn GM500 ECM/NCM */ + { USB_DEVICE_AND_INTERFACE_INFO(OPPO_VENDOR_ID, OPPO_PRODUCT_R11, 0xff, 0xff, 0x30) }, { } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, option_ids);