]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2bfd148b98311a2489c506a32cb67bd1accce60
tree0e2f95e5c6323a1453b7270bc11602f779b5920f
parent1b1a99974c680a4a7986d14d5570149919c81f9b
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