All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
@ 2019-03-14 16:18 ` Stefan Wahren
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2019-03-14 16:18 UTC (permalink / raw)
  To: Ulf Hansson, Shawn Guo, Sascha Hauer, Fabio Estevam
  Cc: linux-arm-kernel, Stefan Wahren, linux-mmc, linux-imx, kernel

According to the i.MX23/28 reference manuals both mmc interfaces support
the MMC_ERASE command. So enable this capability in the driver to allow
erase/discard/trim requests.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 drivers/mmc/host/mxs-mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index 4f06fb0..c021d43 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -648,7 +648,8 @@ static int mxs_mmc_probe(struct platform_device *pdev)
 	/* set mmc core parameters */
 	mmc->ops = &mxs_mmc_ops;
 	mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
-		    MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23;
+		    MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23 |
+		    MMC_CAP_ERASE;
 
 	host->broken_cd = of_property_read_bool(np, "broken-cd");
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
@ 2019-03-14 16:18 ` Stefan Wahren
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2019-03-14 16:18 UTC (permalink / raw)
  To: Ulf Hansson, Shawn Guo, Sascha Hauer, Fabio Estevam
  Cc: linux-arm-kernel, Stefan Wahren, linux-mmc, linux-imx, kernel

According to the i.MX23/28 reference manuals both mmc interfaces support
the MMC_ERASE command. So enable this capability in the driver to allow
erase/discard/trim requests.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 drivers/mmc/host/mxs-mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index 4f06fb0..c021d43 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -648,7 +648,8 @@ static int mxs_mmc_probe(struct platform_device *pdev)
 	/* set mmc core parameters */
 	mmc->ops = &mxs_mmc_ops;
 	mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
-		    MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23;
+		    MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23 |
+		    MMC_CAP_ERASE;
 
 	host->broken_cd = of_property_read_bool(np, "broken-cd");
 
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
  2019-03-14 16:18 ` Stefan Wahren
@ 2019-03-15 11:47   ` Fabio Estevam
  -1 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2019-03-15 11:47 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Ulf Hansson, Sascha Hauer, linux-mmc, NXP Linux Team,
	Sascha Hauer, Shawn Guo,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Thu, Mar 14, 2019 at 1:18 PM Stefan Wahren <stefan.wahren@i2se.com> wrote:
>
> According to the i.MX23/28 reference manuals both mmc interfaces support
> the MMC_ERASE command. So enable this capability in the driver to allow
> erase/discard/trim requests.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
@ 2019-03-15 11:47   ` Fabio Estevam
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2019-03-15 11:47 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Ulf Hansson, Sascha Hauer, linux-mmc, NXP Linux Team,
	Sascha Hauer, Shawn Guo,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Thu, Mar 14, 2019 at 1:18 PM Stefan Wahren <stefan.wahren@i2se.com> wrote:
>
> According to the i.MX23/28 reference manuals both mmc interfaces support
> the MMC_ERASE command. So enable this capability in the driver to allow
> erase/discard/trim requests.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
  2019-03-14 16:18 ` Stefan Wahren
@ 2019-03-18 10:52   ` Ulf Hansson
  -1 siblings, 0 replies; 6+ messages in thread
From: Ulf Hansson @ 2019-03-18 10:52 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Shawn Guo, Sascha Hauer, linux-mmc, dl-linux-imx, Sascha Hauer,
	Fabio Estevam, Linux ARM

On Thu, 14 Mar 2019 at 17:18, Stefan Wahren <stefan.wahren@i2se.com> wrote:
>
> According to the i.MX23/28 reference manuals both mmc interfaces support
> the MMC_ERASE command. So enable this capability in the driver to allow
> erase/discard/trim requests.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/mxs-mmc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
> index 4f06fb0..c021d43 100644
> --- a/drivers/mmc/host/mxs-mmc.c
> +++ b/drivers/mmc/host/mxs-mmc.c
> @@ -648,7 +648,8 @@ static int mxs_mmc_probe(struct platform_device *pdev)
>         /* set mmc core parameters */
>         mmc->ops = &mxs_mmc_ops;
>         mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
> -                   MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23;
> +                   MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23 |
> +                   MMC_CAP_ERASE;
>
>         host->broken_cd = of_property_read_bool(np, "broken-cd");
>
> --
> 2.7.4
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE
@ 2019-03-18 10:52   ` Ulf Hansson
  0 siblings, 0 replies; 6+ messages in thread
From: Ulf Hansson @ 2019-03-18 10:52 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Shawn Guo, Sascha Hauer, linux-mmc, dl-linux-imx, Sascha Hauer,
	Fabio Estevam, Linux ARM

On Thu, 14 Mar 2019 at 17:18, Stefan Wahren <stefan.wahren@i2se.com> wrote:
>
> According to the i.MX23/28 reference manuals both mmc interfaces support
> the MMC_ERASE command. So enable this capability in the driver to allow
> erase/discard/trim requests.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/mxs-mmc.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
> index 4f06fb0..c021d43 100644
> --- a/drivers/mmc/host/mxs-mmc.c
> +++ b/drivers/mmc/host/mxs-mmc.c
> @@ -648,7 +648,8 @@ static int mxs_mmc_probe(struct platform_device *pdev)
>         /* set mmc core parameters */
>         mmc->ops = &mxs_mmc_ops;
>         mmc->caps = MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED |
> -                   MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23;
> +                   MMC_CAP_SDIO_IRQ | MMC_CAP_NEEDS_POLL | MMC_CAP_CMD23 |
> +                   MMC_CAP_ERASE;
>
>         host->broken_cd = of_property_read_bool(np, "broken-cd");
>
> --
> 2.7.4
>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-18 10:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 16:18 [PATCH] mmc: mxs-mmc: Enable MMC_CAP_ERASE Stefan Wahren
2019-03-14 16:18 ` Stefan Wahren
2019-03-15 11:47 ` Fabio Estevam
2019-03-15 11:47   ` Fabio Estevam
2019-03-18 10:52 ` Ulf Hansson
2019-03-18 10:52   ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.