mmc: sdio: Keep card runtime resumed while adding function devices
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 9 Jun 2017 12:27:18 +0000 (15:27 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:39 +0000 (10:30 +0200)
commit4760257cb54e29e9a90e0ce849f4efcd67718816
tree267191c924710274e1171cddded7ce62aae8536f
parent82e7edc216f1a066da10f224ae2e4cd83e53fc13
mmc: sdio: Keep card runtime resumed while adding function devices

Drivers core will runtime suspend a device with no driver. That means the
SDIO card will be runtime suspended as soon as it is added. It is then
runtime resumed to add each function. That is entirely pointless, so add
pm runtime get/put to keep the SDIO card runtime resumed until the function
devices have been added.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sdio.c