From: Oliver Neukum <oneukum@suse.com>
To: jflf_kernel@gmx.com, Oliver Neukum <oneukum@suse.com>,
gregkh@linuxfoundation.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb: add quirks for Lenovo OneLink+ Dock
Date: Wed, 31 Aug 2022 11:16:24 +0200 [thread overview]
Message-ID: <60a08cc9-a96d-9453-1cef-a440527a79f6@suse.com> (raw)
In-Reply-To: <edd97137-74a1-ee0b-d475-7c5b36197155@gmx.com>
On 30.08.22 21:50, jflf_kernel@gmx.com wrote:
Hi,
> TL;DR: the two VL812 hubs don't behave well when suspended.
We need to know the exact nature of their transgressions to inflict
the correct correctional measures.
> I have always kept keyboard and mouse on the USB2 ports connected to the Genesys Logic hub. They work there without any problem.
So they work even without your patch? We should make sure we are
absolutely clear on details.
> With WoL enabled in the BIOS, there are only two wakeup sources:
>
> $ grep . /sys/bus/usb/devices/*/power/wakeup | grep enabled
> /sys/bus/usb/devices/1-6.2.2/power/wakeup:enabled # keyboard on GL850S
> /sys/bus/usb/devices/2-1.1.3/power/wakeup:enabled # net
>
> While suspended I can wake up the laptop with the keyboard and everything works.
Again, with or without RESET_RESUME?
> Moving the keyboard to one of the VL812 ports moves the wakeup source::
>
> $ grep . /sys/bus/usb/devices/*/power/wakeup | grep enabled
> /sys/bus/usb/devices/1-6.1.1/power/wakeup:enabled # keyboard on the :1019 VL812 (USB2)
> /sys/bus/usb/devices/2-1.1.3/power/wakeup:enabled # net
>
>
> Now here's the interesting bit. Without "usbcore.autosuspend=-1" I can still wakeup the laptop from suspend, but after waking up the keyboard is gone:
>
> kernel: hub 1-6.1:1.0: hub_ext_port_status failed (err = -71)
> kernel: hub 1-6:1.0: hub_ext_port_status failed (err = -71)
> kernel: hub 1-6.1:1.0: hub_ext_port_status failed (err = -71)
> kernel: hub 1-6.1:1.0: hub_ext_port_status failed (err = -71)
> kernel: usb 1-6.1-port4: cannot disable (err = -71)
> kernel: usb 1-6.1-port1: cannot disable (err = -71)
>
> After that the port to which the keyboard is connected is essentially dead. Replugging doesn't help, I need to shutdown the laptop (powered via the dock) and cut all power to the dock to get that port back to operational status.
>
> With "usbcore.autosuspend=-1", everything behaves as it should.
Do the keyboard and the hub suspend? Is this with your patch or without?
> I'll run some more tests out of curiosity to see how things behave in corner cases.
While you do so, which is a good idea, could you restate your current
results in a more precise way? We should have 4 results for each hub.
It is not the case that RESET_RESUME has no effect if you give
usbcore.autosuspend=-1 if the system has been suspended. Hence we have
the cases of
no RESET_RESUME/default autosuspend
no RESET_RESUME/autosuspend=-1
with RESET_RESUME/default autosuspend
with RESET_RESUME/autosuspend=-1
Regards
Oliver
next prev parent reply other threads:[~2022-08-31 9:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 16:09 [PATCH] usb: add quirks for Lenovo OneLink+ Dock JFLF
2022-08-24 16:19 ` Greg KH
2022-08-30 11:54 ` Oliver Neukum
2022-08-30 13:56 ` jflf_kernel
2022-08-30 14:47 ` Oliver Neukum
2022-08-30 19:50 ` jflf_kernel
2022-08-31 7:31 ` Greg KH
2022-08-31 7:43 ` jflf_kernel
2022-08-31 8:35 ` Greg KH
2022-08-31 9:16 ` Oliver Neukum [this message]
2022-09-04 21:38 ` jflf_kernel
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=60a08cc9-a96d-9453-1cef-a440527a79f6@suse.com \
--to=oneukum@suse.com \
--cc=gregkh@linuxfoundation.org \
--cc=jflf_kernel@gmx.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/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