rndis_host: add Telit LE310X1 RNDIS USB ID
Subsystems (4)
PATCH v2 1/2 rndis_host: add Telit LE310X1 RNDIS USB ID
In reply to a message not in the archiveAdd 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
@@ -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
PATCH v2 2/2 rndis_host: enable power management for Telit LE310X1
In reply to a message not in the archiveEnable 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
@@ -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
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_infofor now. Power-management behavior is handled in a follow-up patch.Signed-off-by Shaoxu Liu <[email protected]>
Andrew
Re: [PATCH net-next v2 2/2] rndis_host: enable power management for Telit LE310X1
In reply to Shaoxu LiuQuoted 7 lines · Shaoxu Liu
Enable autosuspend support for Telit Cinterion LE310X1 RNDIS interface by selecting a
driver_infovariant withmanage_powercallback.This keeps power management scoped to the new Telit ID only, and avoids changing behavior for all existing RNDIS devices.
Signed-off-by Shaoxu Liu <[email protected]>
Andrew