[lkml]   [2017]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] USB :core :Prevent USB devices to autosuspend while setting interface
On Fri, 10 Nov 2017 wrote:

> From: Abhijeet Kumar <>
> Runtime resume USB device in order to ensure that PM framework knows
> that the we might be using the device in a short time and doesn't
> autosuspend the device while we update it's interface. Without this
> change, if device autosuspends and the kernel polling for block
> devices is disabled through sysfs at runtime or through bootargs, then
> storage devices might never unmount since the disconnect IRQ wont be
> kicked at all.
> Signed-off-by: Abhijeet Kumar <>

I don't see any reason for doing this. The places that call this
subroutine will already have made sure that the device is active.
There's no need for an additional runtime_get.

As for disconnect IRQs, they occur whether the device is suspended or
not (they are generated by the host controller, not by the device).

Alan Stern

 \ /
  Last update: 2017-11-10 17:30    [W:0.031 / U:3.472 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site