From: Ivan Shapovalov <intelfx@intelfx.name>
To: linux-kernel@vger.kernel.org
Cc: "Ivan Shapovalov" <intelfx@intelfx.name>,
"Bjørn Mork" <bjorn@mork.no>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Johan Hovold" <johan@kernel.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
netdev@vger.kernel.org, linux-usb@vger.kernel.org
Subject: [PATCH 4/5] USB: serial: qcserial: disable autosuspend for QDL configurations
Date: Sun, 17 Nov 2024 12:31:14 +0400 [thread overview]
Message-ID: <20241117083204.57738-4-intelfx@intelfx.name> (raw)
In-Reply-To: <20241117083204.57738-1-intelfx@intelfx.name>
This is a port of the corresponding change from the qcserial.c driver
distributed as part of the 9X50 SDK, tested using author's own EM7565
device.
Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
---
drivers/usb/serial/qcserial.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c
index f1b0ef9935bb..b2ae0b16bc2b 100644
--- a/drivers/usb/serial/qcserial.c
+++ b/drivers/usb/serial/qcserial.c
@@ -257,6 +257,7 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
{
struct usb_host_interface *intf = serial->interface->cur_altsetting;
struct device *dev = &serial->dev->dev;
+ struct usb_device *usb_dev = serial->dev;
int retval = -ENODEV;
__u8 nintf;
__u8 ifnum;
@@ -289,6 +290,9 @@ static int qcprobe(struct usb_serial *serial, const struct usb_device_id *id)
retval = 0; /* Success */
else
altsetting = 1;
+
+ /* disable USB SS for QDL */
+ usb_disable_autosuspend(usb_dev);
}
goto done;
--
2.47.0.5.gd823fa0eac
next prev parent reply other threads:[~2024-11-17 8:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-17 8:31 [PATCH 1/5] net: usb: qmi_wwan: add IDs for EM7565 (9X50) in "MBIM USBIF" config Ivan Shapovalov
2024-11-17 8:31 ` [PATCH 2/5] USB: serial: qcserial: add EM7565 (9X50) IDs and configurations Ivan Shapovalov
2024-11-17 8:31 ` [PATCH 3/5] USB: serial: qcserial: add EM9xxx (SDX55) " Ivan Shapovalov
2024-11-17 8:31 ` Ivan Shapovalov [this message]
2024-11-17 8:31 ` [PATCH 5/5] USB: serial: qcserial: enable ZLP for non-QDL interfaces Ivan Shapovalov
2024-11-19 4:55 ` [PATCH 1/5] net: usb: qmi_wwan: add IDs for EM7565 (9X50) in "MBIM USBIF" config Lars Melin
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=20241117083204.57738-4-intelfx@intelfx.name \
--to=intelfx@intelfx.name \
--cc=andrew+netdev@lunn.ch \
--cc=bjorn@mork.no \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--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