From: Shaoxu Liu <shaoxul@foxmail.com>
To: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com
Cc: shaoxul@foxmail.com, linux-usb@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH net-next v2 2/2] rndis_host: enable power management for Telit LE310X1
Date: Tue, 2 Jun 2026 17:05:28 +0800 [thread overview]
Message-ID: <tencent_B7686B84CD4B76D76BB912FA6367FAC2CA05@qq.com> (raw)
In-Reply-To: <20260602090528.2544-1-shaoxul@foxmail.com>
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.
Signed-off-by: Shaoxu Liu <shaoxul@foxmail.com>
---
drivers/net/usb/rndis_host.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index 46eab7bda..5e39d05a2 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -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),
--
2.34.1
next prev parent reply other threads:[~2026-06-02 9:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260602090528.2544-1-shaoxul@foxmail.com>
2026-06-02 9:05 ` [PATCH net-next v2 1/2] rndis_host: add Telit LE310X1 RNDIS USB ID Shaoxu Liu
2026-06-03 12:53 ` Andrew Lunn
2026-06-02 9:05 ` Shaoxu Liu [this message]
2026-06-03 12:55 ` [PATCH net-next v2 2/2] rndis_host: enable power management for Telit LE310X1 Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_B7686B84CD4B76D76BB912FA6367FAC2CA05@qq.com \
--to=shaoxul@foxmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®