From nobody Mon Oct 6 13:39:28 2025 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.2]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B74CD2BDC3F; Mon, 21 Jul 2025 11:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.2 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753098011; cv=none; b=B0aJe+aEqs7P8G1bmXoIiEOrsAqlREmcz4vHM9R05dPbhpU3Zs9z2duyJbmxJpH2m7jXOo2sY9kNE561GaE1DeRIt6P7IQC3NEgakPBKyi2bv+LY06bAYGuW/opVzwsBzFiVW6CH/jd1lIHDcfzEaQh7/a6U9tZAenyISlKeI6Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753098011; c=relaxed/simple; bh=6XGCN6S+1ArKPaLcQX+53Yuwp0acP87Qo4TRmYe6BLM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gOjg9LY/1UgQgSut8yOAE+Nxhc5X8DkVMo7Gy1LbrY8u4FaJ/Ux/L6iVBZsjyK1f24ND0s2ud5F5pSwFPK4NoF+f4wtgdfI8OnNQ0PSRbvCQJaQuGz3gYnBE78b86QoAAZDBOdwZdo1/nxHeaFWTNZeahz4VLfOur4squOe/KPg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=ICIN54ku; arc=none smtp.client-ip=220.197.31.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="ICIN54ku" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Au vjFB3nFeeLKyzHtgEk9AR+erzZgqabDf1jFFq3NcM=; b=ICIN54kuJl4BHa88VQ nVNU94P0YvHD9KOw93eobcM6R7b+tQjkG4I01HZlIyLbEezXe4QPJKiZSuBWrTnU mjoBgP+Ek5G8cu+F6YI5OPYUPQcaJf3m+R78ZD4s4dtL2+73/6NFR2G6ZQnn+lww 1iqpfYnBhf0GyQG2LjoKxp+0Q= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wC37AHvJn5obfSwGg--.15604S2; Mon, 21 Jul 2025 19:39:28 +0800 (CST) From: Slark Xiao To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH] USB: serial: option: add Foxconn T99W709 Date: Mon, 21 Jul 2025 19:39:19 +0800 Message-Id: <20250721113919.28577-1-slark_xiao@163.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wC37AHvJn5obfSwGg--.15604S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7WF1xtw47ZFyrtw4rJrWUArb_yoW8Zw4rpr n0yr12vFWDXFWfXF97trn5ZrWrWws3Kry2g3ZrAw43WF1Iyrs7t34Iy34fXFn2krs5WrsF vrs0krWUK3Z5JrJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0pRhNVhUUUUU= X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/1tbiow2RZGh+Huan9AAAsm Content-Type: text/plain; charset="utf-8" T99W709 is designed based on MTK T300(5G redcap) chip. There are 7 serial ports to be enumerated: AP_LOG, GNSS, AP_META, AT, MD_META, NPT, DBG. RSVD(5) for ADB port. test evidence as below: T: Bus=3D01 Lev=3D02 Prnt=3D02 Port=3D00 Cnt=3D01 Dev#=3D 7 Spd=3D480 MxC= h=3D 0 D: Ver=3D 2.10 Cls=3Def(misc ) Sub=3D02 Prot=3D01 MxPS=3D64 #Cfgs=3D 1 P: Vendor=3D0489 ProdID=3De15f Rev=3D00.01 S: Manufacturer=3DMediaTek Inc. S: Product=3DUSB DATA CARD S: SerialNumber=3D355511220000399 C: #Ifs=3D10 Cfg#=3D 1 Atr=3Da0 MxPwr=3D500mA I: If#=3D0x0 Alt=3D 0 #EPs=3D 1 Cls=3D02(commc) Sub=3D0e Prot=3D00 Driver= =3Dcdc_mbim I: If#=3D0x1 Alt=3D 1 #EPs=3D 2 Cls=3D0a(data ) Sub=3D00 Prot=3D02 Driver= =3Dcdc_mbim I: If#=3D0x2 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x3 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x4 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x5 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D42 Prot=3D01 Driver= =3Dusbfs I: If#=3D0x6 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x7 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x8 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption I: If#=3D0x9 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption Signed-off-by: Slark Xiao --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 147ca50c94be..1fc7ee5fa91d 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -2348,6 +2348,8 @@ static const struct usb_device_id option_ids[] =3D { .driver_info =3D RSVD(5) | RSVD(6) }, { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe167, 0xff), /= * Foxconn T99W640 MBIM */ .driver_info =3D RSVD(3) }, + { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe15f, 0xff), /= * Foxconn T99W709 */ + .driver_info =3D RSVD(5) }, { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 (IOT version) */ .driver_info =3D RSVD(4) | RSVD(5) | RSVD(6) }, { USB_DEVICE(0x1782, 0x4d10) }, /* Fibocom L610 (AT mode) */ --=20 2.25.1