mmc: rtsx_usb_sdmmc: Avoid keeping the device runtime resumed when unused
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 27 Sep 2016 15:44:33 +0000 (08:44 -0700)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 1 Nov 2016 19:17:40 +0000 (15:17 -0400)
commite79c2f2f7b30ac550a22b4cbe7bbf7267c035a57
tree17023dccddfb162aad36baa6ca795a85e9b9428a
parentf125e7f2285c2ec9a9f6039073e95ab65700fc74
mmc: rtsx_usb_sdmmc: Avoid keeping the device runtime resumed when unused

[ Upstream commit 31cf742f515c275d22843c4c756e048d2b6d716c ]

The rtsx_usb_sdmmc driver may bail out in its ->set_ios() callback when no
SD card is inserted. This is wrong, as it could cause the device to remain
runtime resumed when it's unused. Fix this behaviour.

Tested-by: Ritesh Raj Sarraf <rrs@researchut.com>
Cc: <stable@vger.kernel.org>
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/mmc/host/rtsx_usb_sdmmc.c