linux/drivers/memstick
Ulf Hansson 85f89aaf55 memstick: rtsx_usb_ms: Manage runtime PM when accessing the device
[ Upstream commit 9158cb29e7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
History 2016-11-23 21:30:48 -05:00
..
core memstick: mspro_block: add missing curly braces 2015-05-17 19:12:28 -04:00
host memstick: rtsx_usb_ms: Manage runtime PM when accessing the device 2016-11-23 21:30:48 -05:00
Kconfig drivers/memstick: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:52:44 -08:00
Makefile memstick: change to new flag variable 2011-03-17 14:05:34 +01:00