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


Groups > linux.kernel > #1487755 > unrolled thread

[PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode

Started byShawn Lin <shawn.lin@rock-chips.com>
First post2016-09-21 03:50 +0200
Last post2016-09-22 11:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode Shawn Lin <shawn.lin@rock-chips.com> - 2016-09-21 03:50 +0200
    Re: [PATCH 1/5] mmc: core: don't try to switch block size for dual  rate mode Ulf Hansson <ulf.hansson@linaro.org> - 2016-09-22 11:50 +0200

#1487755 — [PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode

FromShawn Lin <shawn.lin@rock-chips.com>
Date2016-09-21 03:50 +0200
Subject[PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode
Message-ID<sjEPD-2rt-3@gated-at.bofh.it>
From: Ziyuan Xu <xzy.xu@rock-chips.com>

Per spec, block size should always be 512 bytes for dual rate mode,
so any attempts to switch the block size under dual rate mode should
be neglected.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

---

 drivers/mmc/core/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index f0ed0af..2553d90 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -2576,7 +2576,8 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen)
 {
 	struct mmc_command cmd = {0};
 
-	if (mmc_card_blockaddr(card) || mmc_card_ddr52(card))
+	if (mmc_card_blockaddr(card) || mmc_card_ddr52(card) ||
+	    mmc_card_hs400(card) || mmc_card_hs400es(card))
 		return 0;
 
 	cmd.opcode = MMC_SET_BLOCKLEN;
-- 
2.3.7

[toc] | [next] | [standalone]


#1488700 — Re: [PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode

FromUlf Hansson <ulf.hansson@linaro.org>
Date2016-09-22 11:50 +0200
SubjectRe: [PATCH 1/5] mmc: core: don't try to switch block size for dual rate mode
Message-ID<sk8NI-4AG-25@gated-at.bofh.it>
In reply to#1487755
On 21 September 2016 at 03:43, Shawn Lin <shawn.lin@rock-chips.com> wrote:
> From: Ziyuan Xu <xzy.xu@rock-chips.com>
>
> Per spec, block size should always be 512 bytes for dual rate mode,
> so any attempts to switch the block size under dual rate mode should
> be neglected.
>
> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

Thanks, applied for next!

Kind regards
Uffe

>
> ---
>
>  drivers/mmc/core/core.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index f0ed0af..2553d90 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -2576,7 +2576,8 @@ int mmc_set_blocklen(struct mmc_card *card, unsigned int blocklen)
>  {
>         struct mmc_command cmd = {0};
>
> -       if (mmc_card_blockaddr(card) || mmc_card_ddr52(card))
> +       if (mmc_card_blockaddr(card) || mmc_card_ddr52(card) ||
> +           mmc_card_hs400(card) || mmc_card_hs400es(card))
>                 return 0;
>
>         cmd.opcode = MMC_SET_BLOCKLEN;
> --
> 2.3.7
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web