From nobody Sat Nov 23 15:35:31 2024 Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE3771CCB2C; Tue, 19 Nov 2024 13:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.31.204.67 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732021597; cv=none; b=rWt6sgA8LzxO6ULfdODCjHhTXDz79TjUn2utd0/4iHiuDrsntyEprKjTXzJsryaGzq7RjGVhCdBBZHPEk6kqQ4qo2FRkwlh+mQfHczvEuSK0R8i9w6VFJhGwW8TmLnAy15nxGfXeYiz5/M9AIpzyMhNNWxZl4VE5JiDECXXYeYI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732021597; c=relaxed/simple; bh=JtWIzyY/2ym9dryXGJVbXWARmJW5m80KEY9YH8YDy4A=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=rEsDByjtjB9KaejNupKypbbC0bTWPsokSIxs7bX25jMsYrk0DQAEOL31bfbZBKapyk6cIG9bCtwZYqXDvCzSQX8IyUlJrFcWFMoHejAgyNJ3tNVraE5cFsl9HqHD+xQWKAumo7irulg7OMyLMReFbBGqdFpbq57IE9MQtOncBIk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=turris.com; spf=pass smtp.mailfrom=turris.com; dkim=pass (1024-bit key) header.d=turris.com header.i=@turris.com header.b=RExPBm/R; arc=none smtp.client-ip=217.31.204.67 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=turris.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=turris.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=turris.com header.i=@turris.com header.b="RExPBm/R" Received: from localhost (unknown [IPv6:2001:1488:fffe:6:1e96:d231:26b0:9350]) by mail.nic.cz (Postfix) with ESMTPSA id 4AFEA1C12EA; Tue, 19 Nov 2024 14:00:19 +0100 (CET) Authentication-Results: mail.nic.cz; auth=pass smtp.auth=michal.hrusecky@nic.cz smtp.mailfrom=michal.hrusecky@turris.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=turris.com; s=default; t=1732021219; bh=JtWIzyY/2ym9dryXGJVbXWARmJW5m80KEY9YH8YDy4A=; h=Date:From:To:Cc:Subject:From:Reply-To:Subject:To:Cc; b=RExPBm/R+/c+FYSRhBVHrHg7HFgQcd+dIWAeflNaflwSNpYCrHDAGsMnp3Bo/ejzH YLmjvNmSQ9+jomw3+dlcKI26AC8L6/53sJOxzpOiW0T9H2tqgC7o3bZx5QkpZXEHV6 qIDWP9eUwLiSgOYUnfzAZ8qB4qzcgYW7/v+R2TiM= Date: Tue, 19 Nov 2024 14:00:18 +0100 From: Michal Hrusecky To: Johan Hovold Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: serial: option: add MeiG Smart SLM770A Message-ID: <6uel66cvf2cn2jenpoc43usee3pwnmtaerqnpfl7tnoa6s5mff@5xxrpbabupah> X-Operating-System: Linux Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Action: no action X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: WHITELISTED_IP X-Rspamd-Server: mail X-Spamd-Bar: / X-Rspamd-Queue-Id: 4AFEA1C12EA X-Spamd-Result: default: False [-0.10 / 16.00]; MIME_GOOD(-0.10)[text/plain]; WHITELISTED_IP(0.00)[2001:1488:fffe:6:1e96:d231:26b0:9350]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25192, ipnet:2001:1488::/32, country:CZ]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[] Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update the USB serial option driver to support MeiG Smart SLM770A. ID 2dee:4d57 Marvell Mobile Composite Device Bus T: Bus=3D02 Lev=3D01 Prnt=3D01 Port=3D00 Cnt=3D01 Dev#=3D 2 Spd=3D480 Mx= Ch=3D 0 D: Ver=3D 2.00 Cls=3Def(misc ) Sub=3D02 Prot=3D01 MxPS=3D64 #Cfgs=3D 1 P: Vendor=3D2dee ProdID=3D4d57 Rev=3D 1.00 S: Manufacturer=3DMarvell S: Product=3DMobile Composite Device Bus C:* #Ifs=3D 6 Cfg#=3D 1 Atr=3Dc0 MxPwr=3D500mA A: FirstIf#=3D 0 IfCount=3D 2 Cls=3De0(wlcon) Sub=3D01 Prot=3D03 I:* If#=3D 0 Alt=3D 0 #EPs=3D 1 Cls=3De0(wlcon) Sub=3D01 Prot=3D03 Driver= =3Drndis_host E: Ad=3D87(I) Atr=3D03(Int.) MxPS=3D 64 Ivl=3D4096ms I:* If#=3D 1 Alt=3D 0 #EPs=3D 2 Cls=3D0a(data ) Sub=3D00 Prot=3D00 Driver= =3Drndis_host E: Ad=3D83(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms E: Ad=3D0c(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms I:* If#=3D 2 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption E: Ad=3D82(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms E: Ad=3D0b(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms I:* If#=3D 3 Alt=3D 0 #EPs=3D 3 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption E: Ad=3D88(I) Atr=3D03(Int.) MxPS=3D 64 Ivl=3D4096ms E: Ad=3D81(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms E: Ad=3D0a(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms I:* If#=3D 4 Alt=3D 0 #EPs=3D 3 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption E: Ad=3D89(I) Atr=3D03(Int.) MxPS=3D 64 Ivl=3D4096ms E: Ad=3D86(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms E: Ad=3D0f(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms I:* If#=3D 5 Alt=3D 0 #EPs=3D 2 Cls=3Dff(vend.) Sub=3D00 Prot=3D00 Driver= =3Doption E: Ad=3D85(I) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms E: Ad=3D0e(O) Atr=3D02(Bulk) MxPS=3D 512 Ivl=3D0ms Tested successfully connecting to the Internet via rndis interface after dialing via AT commands on If#=3D3 or If#=3D4. Not sure of the purpose of the other serial interfaces. Signed-off-by: Michal Hrusecky --- drivers/usb/serial/option.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 4f18f189f309..31b3d007750c 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -624,6 +624,8 @@ static void option_instat_callback(struct urb *urb); #define MEIGSMART_PRODUCT_SRM825L 0x4d22 /* MeiG Smart SLM320 based on UNISOC UIS8910 */ #define MEIGSMART_PRODUCT_SLM320 0x4d41 +/* MeiG Smart SLM770A based on ASR1803 */ +#define MEIGSMART_PRODUCT_SLM770A 0x4d57 =20 /* Device flags */ =20 @@ -2376,6 +2378,7 @@ static const struct usb_device_id option_ids[] =3D { { USB_DEVICE_AND_INTERFACE_INFO(UNISOC_VENDOR_ID, TOZED_PRODUCT_LT70C, 0x= ff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(UNISOC_VENDOR_ID, LUAT_PRODUCT_AIR720U, 0= xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(MEIGSMART_VENDOR_ID, MEIGSMART_PRODUCT_SL= M320, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(MEIGSMART_VENDOR_ID, MEIGSMART_PRODUCT_SL= M770A, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(MEIGSMART_VENDOR_ID, MEIGSMART_PRODUCT_SR= M825L, 0xff, 0xff, 0x30) }, { USB_DEVICE_AND_INTERFACE_INFO(MEIGSMART_VENDOR_ID, MEIGSMART_PRODUCT_SR= M825L, 0xff, 0xff, 0x40) }, { USB_DEVICE_AND_INTERFACE_INFO(MEIGSMART_VENDOR_ID, MEIGSMART_PRODUCT_SR= M825L, 0xff, 0xff, 0x60) }, --=20 2.47.0