]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/memstick/host/rtsx_usb_ms.c
memstick: rtsx_usb_ms: Manage runtime PM when accessing the device
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 28 Sep 2016 18:33:28 +0000 (11:33 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Oct 2016 13:43:05 +0000 (15:43 +0200)
commit9158cb29e7c2f10dd325eb1589f0fe745a271257
tree0e2f95e5c6323a1453b7270bc11602f779b5920f
parent796aa46adf1d90eab36ae06a42e6d3f10b28a75c
memstick: rtsx_usb_ms: Manage runtime PM when accessing the device

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: <stable@vger.kernel.org>
Cc: Ritesh Raj Sarraf <rrs@researchut.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/memstick/host/rtsx_usb_ms.c