Skip to contentSkip to conversation

rndis_host: add Telit LE310X1 RNDIS USB ID

PATCH In review Shaoxu Liu 2 participants 4 messages Jun 2 – Jun 3 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Shaoxu Liu

author
#1 lore raw

PATCH v2 1/2 rndis_host: add Telit LE310X1 RNDIS USB ID

Add a device match entry for Telit Cinterion LE310X1 RNDIS interface (VID:PID 1bc7:7030).

This is a functional no-op and keeps using the generic rndis_info for now. Power-management behavior is handled in a follow-up patch.

---
 drivers/net/usb/rndis_host.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/usb/rndis_host.c +5 -0
index 7b3739b29..46eab7bda 100644
@@ -657,6 +657,11 @@ static const struct usb_device_id	products [] = {
 	/* RNDIS is MSFT's un-official variant of CDC ACM */
 	USB_INTERFACE_INFO(USB_CLASS_COMM, 2 /* ACM */, 0x0ff),
 	.driver_info = (unsigned long) &rndis_info,
+}, {
+	/* Telit Cinterion LE310X1 RNDIS */
+	USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x7030,
+				      USB_CLASS_WIRELESS_CONTROLLER, 1, 3),
+	.driver_info = (unsigned long)&rndis_info,
 }, {
 	/* "ActiveSync" is an undocumented variant of RNDIS, used in WM5 */
 	USB_INTERFACE_INFO(USB_CLASS_MISC, 1, 1),
Signature · 1 line
2.34.1
Reviewed-by on v2 1/2
#2 lore raw
Quoted 7 lines · Shaoxu Liu

Add a device match entry for Telit Cinterion LE310X1 RNDIS interface (VID:PID 1bc7:7030).

This is a functional no-op and keeps using the generic rndis_info for now. Power-management behavior is handled in a follow-up patch.

Andrew

author
#3 lore raw

PATCH v2 2/2 rndis_host: enable power management for Telit LE310X1

In reply to a message not in the archive

Enable autosuspend support for Telit Cinterion LE310X1 RNDIS interface by selecting a driver_info variant with manage_power callback.

This keeps power management scoped to the new Telit ID only, and avoids changing behavior for all existing RNDIS devices.

---
 drivers/net/usb/rndis_host.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/net/usb/rndis_host.c +12 -1
index 46eab7bda..5e39d05a2 100644
@@ -630,6 +630,17 @@ static const struct driver_info	zte_rndis_info = {
 	.tx_fixup =	rndis_tx_fixup,
 };
 
+static const struct driver_info	rndis_info_lowpower = {
+	.description =	"RNDIS device",
+	.flags =	FLAG_ETHER | FLAG_POINTTOPOINT | FLAG_FRAMING_RN | FLAG_NO_SETINT,
+	.bind =		rndis_bind,
+	.unbind =	rndis_unbind,
+	.status =	rndis_status,
+	.rx_fixup =	rndis_rx_fixup,
+	.tx_fixup =	rndis_tx_fixup,
+	.manage_power =	usbnet_manage_power,
+};
+
 /*-------------------------------------------------------------------------*/
 
 static const struct usb_device_id	products [] = {
@@ -661,7 +672,7 @@ static const struct usb_device_id	products [] = {
 	/* Telit Cinterion LE310X1 RNDIS */
 	USB_DEVICE_AND_INTERFACE_INFO(0x1bc7, 0x7030,
 				      USB_CLASS_WIRELESS_CONTROLLER, 1, 3),
-	.driver_info = (unsigned long)&rndis_info,
+	.driver_info = (unsigned long)&rndis_info_lowpower,
 }, {
 	/* "ActiveSync" is an undocumented variant of RNDIS, used in WM5 */
 	USB_INTERFACE_INFO(USB_CLASS_MISC, 1, 1),
Signature · 1 line
2.34.1
Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH net-next v2 2/2] rndis_host: enable power management for Telit LE310X1

Quoted 7 lines · Shaoxu Liu

Enable autosuspend support for Telit Cinterion LE310X1 RNDIS interface by selecting a driver_info variant with manage_power callback.

This keeps power management scoped to the new Telit ID only, and avoids changing behavior for all existing RNDIS devices.

Andrew