projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a72e8b1
)
mmc: mediatek: add SD write protect support
author
Chaotian Jing
<chaotian.jing@mediatek.com>
Sun, 14 Feb 2016 18:31:00 +0000
(
02:31
+0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:24 +0000
(11:03 +0100)
use mmc core layer's API to support sd write protect
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/mtk-sd.c
b/drivers/mmc/host/mtk-sd.c
index 82a97ac4e956f64941e2a9890728ea9831844550..f01972eb57e967030817ba8768cf92b3fecafee0 100644
(file)
--- a/
drivers/mmc/host/mtk-sd.c
+++ b/
drivers/mmc/host/mtk-sd.c
@@
-35,6
+35,7
@@
#include <linux/mmc/mmc.h>
#include <linux/mmc/sd.h>
#include <linux/mmc/sdio.h>
+#include <linux/mmc/slot-gpio.h>
#define MAX_BD_NUM 1024
@@
-1452,6
+1453,7
@@
static struct mmc_host_ops mt_msdc_ops = {
.pre_req = msdc_pre_req,
.request = msdc_ops_request,
.set_ios = msdc_ops_set_ios,
+ .get_ro = mmc_gpio_get_ro,
.start_signal_voltage_switch = msdc_ops_switch_volt,
.card_busy = msdc_card_busy,
.execute_tuning = msdc_execute_tuning,