projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2288e
)
ODROID-COMMON: amlogic/mmc: Fix SD suspend issue
author
Ray
<1458889+rayelec@users.noreply.github.com>
Wed, 24 Apr 2019 07:34:45 +0000
(09:34 +0200)
committer
Dongjin Kim
<tobetter@gmail.com>
Fri, 20 Mar 2020 07:03:43 +0000
(16:03 +0900)
Change-Id: Ib02b6024d2ac7452666048e9b25e0edc22ed2a39
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
drivers/amlogic/mmc/aml_sd_emmc.c
patch
|
blob
|
history
diff --git
a/drivers/amlogic/mmc/aml_sd_emmc.c
b/drivers/amlogic/mmc/aml_sd_emmc.c
index
dc1b0fd
..
1330e78
100644
(file)
--- a/
drivers/amlogic/mmc/aml_sd_emmc.c
+++ b/
drivers/amlogic/mmc/aml_sd_emmc.c
@@
-3438,6
+3438,12
@@
static void meson_mmc_shutdown(struct platform_device *pdev)
}
}
}
+
+static int meson_mmc_suspend(struct platform_device *pdev, pm_message_t state)
+{
+ meson_mmc_shutdown(pdev);
+ return 0;
+}
#endif
static struct meson_mmc_data mmc_data_gxbb = {
@@
-3798,6
+3804,7
@@
static struct platform_driver meson_mmc_driver = {
.remove = meson_mmc_remove,
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
.shutdown = meson_mmc_shutdown,
+ .suspend = meson_mmc_suspend,
#endif
.driver = {
.name = "meson-aml-mmc",