Microchip USB2642 Hub not resuming from USB autosuspend
stern at rowland.harvard.edu
Tue Jun 23 10:54:53 EDT 2020
On Tue, Jun 23, 2020 at 03:48:01PM +0200, Martin Kepplinger wrote:
> We've resolved this issue too. When scsi (sd) runtime pm is not enabled
> by default, it needs to be enabled of course and events_dfl_poll_msecs
> for the block layer set to 0.
Actually that last step isn't needed. But if you don't do it, the device
will wake up from runtime suspend every time the block layer polls it. So
you probably do want to either turn off polling or increase the polling
> scsi sd has until now incomplete support for runtime pm and this
> addition makes it work, i.e. suspend when not mounted:
> the whole USB path is suspended as a consequence - and woken up if opened.
I don't understand this. As far as I know, runtime-PM support in the SCSI
and block layers has been complete for many years. If you have to do
anything extra (like applying the patch in the email you mentioned) then
something is broken. The device should be able to go into runtime suspend
just fine with the current code -- even when a file system is mounted.
More information about the linux-arm-kernel