mmc: rtsx_usb_sdmmc: Don't runtime resume the device while changing led
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 May 2018 09:40:39 +0000 (11:40 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit4bfdd76dcb672dd55121b04ed7f1c1ff4343f1ef
tree88c058370737106b9b4a2fa19547e8c49d7f68a6
parent7d5ef512575663695cf85f3aeb985a0aeb03e364
mmc: rtsx_usb_sdmmc: Don't runtime resume the device while changing led

In case the card has been powered off, it seems silly to continue to allow
the led to be updated. Instead let's forbid that, as it enables us to
prevent runtime resuming the device and thus avoids wasting energy.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
drivers/mmc/host/rtsx_usb_sdmmc.c