]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-linux-kernel/ti-linux-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)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 1 Nov 2016 19:17:55 +0000 (15:17 -0400)
commit59eabe8bb60f849151362bffcf038cfa6495925b
tree66b5c214f6626840fb49a6dd21ae84e6cdb11c74
parent86559fc191ca99f6345c21094ca6c573d2a6be70
memstick: rtsx_usb_ms: Manage runtime PM when accessing the device

[ Upstream commit 9158cb29e7c2f10dd325eb1589f0fe745a271257 ]

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>
drivers/memstick/host/rtsx_usb_ms.c