• Ulf Hansson's avatar
    memstick: rtsx_usb_ms: Manage runtime PM when accessing the device · b9836e6a
    Ulf Hansson authored
    commit 9158cb29 upstream.
    
    Accesses to the rtsx usb device, which is the parent of the rtsx memstick
    device, must not be done unless it's runtime resumed. This is currently not
    the case and it could trigger various errors.
    
    Fix this by properly deal with runtime PM in this regards. This means
    making sure the device is runtime resumed, when serving requests via the
    ->request() callback or changing settings via the ->set_param() callbacks.
    
    Cc: Ritesh Raj Sarraf <rrs@researchut.com>
    Cc: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    b9836e6a
rtsx_usb_ms.c 21 KB