]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: SDIO: Add runtime pm support
authorJackson Chang <chang_jackson@projectara.com>
Fri, 5 Aug 2016 02:22:02 +0000 (10:22 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 5 Aug 2016 18:14:48 +0000 (20:14 +0200)
commit8f3972f78f3ac52833fb781cbb689af39fc8b0f1
tree6ce5446a466b7849ec4d4d7d3cadb6c95bce3bab
parent591c45227a77505f111dd42347b2ad09b60ed131
greybus: SDIO: Add runtime pm support

Modify SDIO greybus driver to support runtime PM framework.
To enable SDIO runtime PM, it needs to remove MMC_CAP_NEEDS_POLL
and add MMC_CAP2_CORE_RUNTIME_PM in set_host_caps().
The suspend function and resume function have been tested
with micron-sdio image by sysfs. SDIO functions work well
on suspend/resume.

Testing Done: Compiled and verified on EVT2.0 + Micron ARA
              SD module with USB connector

Signed-off-by: Jackson Chang <chang_jackson@projectara.com>
Reviewed-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h
drivers/staging/greybus/sdio.c