]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Oct 2016 13:42:25 +0000 (15:42 +0200)
commitfd9ec3e69c7d5f7404f1c2e1fb5e23b793c922e5
treecc4a62e30d760b0d528d3e5ec443cd2c18f1d16a
parent6cb83227dad79ffb0555f1a95a1824805f6a0deb
mmc: rtsx_usb_sdmmc: Avoid keeping the device runtime resumed when unused

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>
drivers/mmc/host/rtsx_usb_sdmmc.c