Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1334107 > unrolled thread

[PATCH] mmc: mediatek: add SD write protect support

Started byChaotian Jing <chaotian.jing@mediatek.com>
First post2016-02-15 03:40 +0100
Last post2016-02-16 17:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mmc: mediatek: add SD write protect support Chaotian Jing <chaotian.jing@mediatek.com> - 2016-02-15 03:40 +0100
    Re: [PATCH] mmc: mediatek: add SD write protect support Ulf Hansson <ulf.hansson@linaro.org> - 2016-02-16 17:40 +0100

#1334107 — [PATCH] mmc: mediatek: add SD write protect support

FromChaotian Jing <chaotian.jing@mediatek.com>
Date2016-02-15 03:40 +0100
Subject[PATCH] mmc: mediatek: add SD write protect support
Message-ID<r2heW-31E-5@gated-at.bofh.it>
use mmc core layer's API to support sd write protect

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
---
 drivers/mmc/host/mtk-sd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 82a97ac..f01972e 100644
--- 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,
-- 
1.8.1.1.dirty

[toc] | [next] | [standalone]


#1335621

FromUlf Hansson <ulf.hansson@linaro.org>
Date2016-02-16 17:40 +0100
Message-ID<r2QPo-1Uv-31@gated-at.bofh.it>
In reply to#1334107
On 14 February 2016 at 19:31, Chaotian Jing <chaotian.jing@mediatek.com> wrote:
> use mmc core layer's API to support sd write protect
>
> Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>

Thanks, applied for next!

Kind regards
Uffe

> ---
>  drivers/mmc/host/mtk-sd.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
> index 82a97ac..f01972e 100644
> --- 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,
> --
> 1.8.1.1.dirty
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web