Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
@ 2024-04-29  6:38 Felix Qin
  2024-04-29  7:09 ` Dragan Simic
  0 siblings, 1 reply; 8+ messages in thread
From: Felix Qin @ 2024-04-29  6:38 UTC (permalink / raw)
  To: ulf.hansson, linux-mmc; +Cc: Felix Qin, Avri Altman, Dragan Simic

Extensive testing has shown that some specific SD cards require an
increased command timeout to be successfully initialized.

More info:
Platform: Rockchip SoC + DW Multimedia host Controller
SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
Note: The SD card is custom-made by the customer in collaboration
with the wafer foundry.

Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>

---
v2: Add more info
v3: Based on the __mmc_poll_for_busy API for modification
---
 drivers/mmc/core/sd_ops.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 3ce1ff336826..a1c028303ba7 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -19,8 +19,13 @@
 #include "sd_ops.h"
 #include "mmc_ops.h"
 
+/*
+ * Extensive testing has shown that some specific SD cards
+ * require an increased command timeout to be successfully
+ * initialized.
+ */
 #define SD_APP_OP_COND_PERIOD_US	(10 * 1000) /* 10ms */
-#define SD_APP_OP_COND_TIMEOUT_MS	1000 /* 1s */
+#define SD_APP_OP_COND_TIMEOUT_MS	2000 /* 2s */
 
 struct sd_app_op_cond_busy_data {
 	struct mmc_host *host;
-- 
2.34.1


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

* Re: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  6:38 [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command Felix Qin
@ 2024-04-29  7:09 ` Dragan Simic
  2024-04-29  7:19   ` Yao Xiao
  0 siblings, 1 reply; 8+ messages in thread
From: Dragan Simic @ 2024-04-29  7:09 UTC (permalink / raw)
  To: Felix Qin; +Cc: ulf.hansson, linux-mmc, Avri Altman

Hello Felix,

On 2024-04-29 08:38, Felix Qin wrote:
> Extensive testing has shown that some specific SD cards require an
> increased command timeout to be successfully initialized.
> 
> More info:
> Platform: Rockchip SoC + DW Multimedia host Controller
> SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
> Note: The SD card is custom-made by the customer in collaboration
> with the wafer foundry.
> 
> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
> Acked-by: Avri Altman <avri.altman@wdc.com>
> Reviewed-by: Dragan Simic <dsimic@manjaro.org>

Huh, the v3 looks nowhere like the v2, so please consider
my Reviewed-by tag revoked until I get some time to check what
actually happened to the patch.

> ---
> v2: Add more info
> v3: Based on the __mmc_poll_for_busy API for modification
> ---
>  drivers/mmc/core/sd_ops.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
> index 3ce1ff336826..a1c028303ba7 100644
> --- a/drivers/mmc/core/sd_ops.c
> +++ b/drivers/mmc/core/sd_ops.c
> @@ -19,8 +19,13 @@
>  #include "sd_ops.h"
>  #include "mmc_ops.h"
> 
> +/*
> + * Extensive testing has shown that some specific SD cards
> + * require an increased command timeout to be successfully
> + * initialized.
> + */
>  #define SD_APP_OP_COND_PERIOD_US	(10 * 1000) /* 10ms */
> -#define SD_APP_OP_COND_TIMEOUT_MS	1000 /* 1s */
> +#define SD_APP_OP_COND_TIMEOUT_MS	2000 /* 2s */
> 
>  struct sd_app_op_cond_busy_data {
>  	struct mmc_host *host;

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

* Re: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  7:09 ` Dragan Simic
@ 2024-04-29  7:19   ` Yao Xiao
  2024-04-29  7:22     ` Dragan Simic
  0 siblings, 1 reply; 8+ messages in thread
From: Yao Xiao @ 2024-04-29  7:19 UTC (permalink / raw)
  To: Dragan Simic; +Cc: ulf.hansson, linux-mmc, Avri Altman

Hi Dragan,

On 2024/4/29 15:09, Dragan Simic wrote:
> Hello Felix,
> 
> On 2024-04-29 08:38, Felix Qin wrote:
>> Extensive testing has shown that some specific SD cards require an
>> increased command timeout to be successfully initialized.
>>
>> More info:
>> Platform: Rockchip SoC + DW Multimedia host Controller
>> SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
>> Note: The SD card is custom-made by the customer in collaboration
>> with the wafer foundry.
>>
>> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
>> Acked-by: Avri Altman <avri.altman@wdc.com>
>> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
> 
> Huh, the v3 looks nowhere like the v2, so please consider
> my Reviewed-by tag revoked until I get some time to check what
> actually happened to the patch.
I apologize for the inconvenience caused, and I will resend the patch.
> 
>> ---
>> v2: Add more info
>> v3: Based on the __mmc_poll_for_busy API for modification
>> ---
>>  drivers/mmc/core/sd_ops.c | 7 ++++++-
>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
>> index 3ce1ff336826..a1c028303ba7 100644
>> --- a/drivers/mmc/core/sd_ops.c
>> +++ b/drivers/mmc/core/sd_ops.c
>> @@ -19,8 +19,13 @@
>>  #include "sd_ops.h"
>>  #include "mmc_ops.h"
>>
>> +/*
>> + * Extensive testing has shown that some specific SD cards
>> + * require an increased command timeout to be successfully
>> + * initialized.
>> + */
>>  #define SD_APP_OP_COND_PERIOD_US    (10 * 1000) /* 10ms */
>> -#define SD_APP_OP_COND_TIMEOUT_MS    1000 /* 1s */
>> +#define SD_APP_OP_COND_TIMEOUT_MS    2000 /* 2s */
>>
>>  struct sd_app_op_cond_busy_data {
>>      struct mmc_host *host;


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

* [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
@ 2024-04-29  7:19 Felix Qin
  2024-04-29 19:38 ` Avri Altman
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Felix Qin @ 2024-04-29  7:19 UTC (permalink / raw)
  To: ulf.hansson, linux-mmc; +Cc: Felix Qin

Extensive testing has shown that some specific SD cards require an
increased command timeout to be successfully initialized.

More info:
Platform: Rockchip SoC + DW Multimedia host Controller
SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
Note: The SD card is custom-made by the customer in collaboration
with the wafer foundry.

Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>

---
v2: Add more info
v3: Based on the __mmc_poll_for_busy API for modification
---
 drivers/mmc/core/sd_ops.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 3ce1ff336826..a1c028303ba7 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -19,8 +19,13 @@
 #include "sd_ops.h"
 #include "mmc_ops.h"
 
+/*
+ * Extensive testing has shown that some specific SD cards
+ * require an increased command timeout to be successfully
+ * initialized.
+ */
 #define SD_APP_OP_COND_PERIOD_US	(10 * 1000) /* 10ms */
-#define SD_APP_OP_COND_TIMEOUT_MS	1000 /* 1s */
+#define SD_APP_OP_COND_TIMEOUT_MS	2000 /* 2s */
 
 struct sd_app_op_cond_busy_data {
 	struct mmc_host *host;
-- 
2.34.1


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

* Re: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  7:19   ` Yao Xiao
@ 2024-04-29  7:22     ` Dragan Simic
  0 siblings, 0 replies; 8+ messages in thread
From: Dragan Simic @ 2024-04-29  7:22 UTC (permalink / raw)
  To: Yao Xiao; +Cc: ulf.hansson, linux-mmc, Avri Altman

On 2024-04-29 09:19, Yao Xiao wrote:
> On 2024/4/29 15:09, Dragan Simic wrote:
>> On 2024-04-29 08:38, Felix Qin wrote:
>>> Extensive testing has shown that some specific SD cards require an
>>> increased command timeout to be successfully initialized.
>>> 
>>> More info:
>>> Platform: Rockchip SoC + DW Multimedia host Controller
>>> SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
>>> Note: The SD card is custom-made by the customer in collaboration
>>> with the wafer foundry.
>>> 
>>> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
>>> Acked-by: Avri Altman <avri.altman@wdc.com>
>>> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
>> 
>> Huh, the v3 looks nowhere like the v2, so please consider
>> my Reviewed-by tag revoked until I get some time to check what
>> actually happened to the patch.
> 
> I apologize for the inconvenience caused, and I will resend the patch.

No worries.  I'll go through the v3 and the associated Ulf's
patch a bit later.

>>> ---
>>> v2: Add more info
>>> v3: Based on the __mmc_poll_for_busy API for modification
>>> ---
>>>  drivers/mmc/core/sd_ops.c | 7 ++++++-
>>>  1 file changed, 6 insertions(+), 1 deletion(-)
>>> 
>>> diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
>>> index 3ce1ff336826..a1c028303ba7 100644
>>> --- a/drivers/mmc/core/sd_ops.c
>>> +++ b/drivers/mmc/core/sd_ops.c
>>> @@ -19,8 +19,13 @@
>>>  #include "sd_ops.h"
>>>  #include "mmc_ops.h"
>>> 
>>> +/*
>>> + * Extensive testing has shown that some specific SD cards
>>> + * require an increased command timeout to be successfully
>>> + * initialized.
>>> + */
>>>  #define SD_APP_OP_COND_PERIOD_US    (10 * 1000) /* 10ms */
>>> -#define SD_APP_OP_COND_TIMEOUT_MS    1000 /* 1s */
>>> +#define SD_APP_OP_COND_TIMEOUT_MS    2000 /* 2s */
>>> 
>>>  struct sd_app_op_cond_busy_data {
>>>      struct mmc_host *host;

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

* RE: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  7:19 Felix Qin
@ 2024-04-29 19:38 ` Avri Altman
  2024-04-30  1:27 ` Dragan Simic
  2024-05-03 13:14 ` Ulf Hansson
  2 siblings, 0 replies; 8+ messages in thread
From: Avri Altman @ 2024-04-29 19:38 UTC (permalink / raw)
  To: Felix Qin, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org

> Extensive testing has shown that some specific SD cards require an increased
> command timeout to be successfully initialized.
> 
> More info:
> Platform: Rockchip SoC + DW Multimedia host Controller SD card: Xvv microSD
> CMH34A17TMA12 (Made in Korea)
> Note: The SD card is custom-made by the customer in collaboration with the
> wafer foundry.
> 
> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>
Acked-by: Avri Altman <avri.altman@wdc.com>


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

* Re: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  7:19 Felix Qin
  2024-04-29 19:38 ` Avri Altman
@ 2024-04-30  1:27 ` Dragan Simic
  2024-05-03 13:14 ` Ulf Hansson
  2 siblings, 0 replies; 8+ messages in thread
From: Dragan Simic @ 2024-04-30  1:27 UTC (permalink / raw)
  To: Felix Qin; +Cc: ulf.hansson, linux-mmc

Hello Felix,

On 2024-04-29 09:19, Felix Qin wrote:
> Extensive testing has shown that some specific SD cards require an
> increased command timeout to be successfully initialized.
> 
> More info:
> Platform: Rockchip SoC + DW Multimedia host Controller
> SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
> Note: The SD card is custom-made by the customer in collaboration
> with the wafer foundry.
> 
> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>

After going through the associated discussion [1] and after
reviewing the associated preparatory patch, [2] this patch is
surely looking good to me.

Reviewed-by: Dragan Simic <dsimic@manjaro.org>

[1] 
https://lore.kernel.org/linux-mmc/CAPDyKFqdA8yisf6tY4gJ-ejk5azTUOZOkZhySYjeHJKibVraLg@mail.gmail.com/
[2] 
https://lore.kernel.org/all/20240425133034.79599-1-ulf.hansson@linaro.org/

> ---
> v2: Add more info
> v3: Based on the __mmc_poll_for_busy API for modification
> ---
>  drivers/mmc/core/sd_ops.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
> index 3ce1ff336826..a1c028303ba7 100644
> --- a/drivers/mmc/core/sd_ops.c
> +++ b/drivers/mmc/core/sd_ops.c
> @@ -19,8 +19,13 @@
>  #include "sd_ops.h"
>  #include "mmc_ops.h"
> 
> +/*
> + * Extensive testing has shown that some specific SD cards
> + * require an increased command timeout to be successfully
> + * initialized.
> + */
>  #define SD_APP_OP_COND_PERIOD_US	(10 * 1000) /* 10ms */
> -#define SD_APP_OP_COND_TIMEOUT_MS	1000 /* 1s */
> +#define SD_APP_OP_COND_TIMEOUT_MS	2000 /* 2s */
> 
>  struct sd_app_op_cond_busy_data {
>  	struct mmc_host *host;

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

* Re: [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command.
  2024-04-29  7:19 Felix Qin
  2024-04-29 19:38 ` Avri Altman
  2024-04-30  1:27 ` Dragan Simic
@ 2024-05-03 13:14 ` Ulf Hansson
  2 siblings, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2024-05-03 13:14 UTC (permalink / raw)
  To: Felix Qin; +Cc: linux-mmc

On Mon, 29 Apr 2024 at 09:20, Felix Qin <xiaokeqinhealth@126.com> wrote:
>
> Extensive testing has shown that some specific SD cards require an
> increased command timeout to be successfully initialized.
>
> More info:
> Platform: Rockchip SoC + DW Multimedia host Controller
> SD card: Xvv microSD CMH34A17TMA12 (Made in Korea)
> Note: The SD card is custom-made by the customer in collaboration
> with the wafer foundry.
>
> Signed-off-by: Felix Qin <xiaokeqinhealth@126.com>

Applied for next, thanks!

Kind regards
Uffe


>
> ---
> v2: Add more info
> v3: Based on the __mmc_poll_for_busy API for modification
> ---
>  drivers/mmc/core/sd_ops.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
> index 3ce1ff336826..a1c028303ba7 100644
> --- a/drivers/mmc/core/sd_ops.c
> +++ b/drivers/mmc/core/sd_ops.c
> @@ -19,8 +19,13 @@
>  #include "sd_ops.h"
>  #include "mmc_ops.h"
>
> +/*
> + * Extensive testing has shown that some specific SD cards
> + * require an increased command timeout to be successfully
> + * initialized.
> + */
>  #define SD_APP_OP_COND_PERIOD_US       (10 * 1000) /* 10ms */
> -#define SD_APP_OP_COND_TIMEOUT_MS      1000 /* 1s */
> +#define SD_APP_OP_COND_TIMEOUT_MS      2000 /* 2s */
>
>  struct sd_app_op_cond_busy_data {
>         struct mmc_host *host;
> --
> 2.34.1
>

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

end of thread, other threads:[~2024-05-03 13:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29  6:38 [PATCH v3 1/1] mmc: core: increase the timeout period of the ACMD41 command Felix Qin
2024-04-29  7:09 ` Dragan Simic
2024-04-29  7:19   ` Yao Xiao
2024-04-29  7:22     ` Dragan Simic
  -- strict thread matches above, loose matches on Subject: below --
2024-04-29  7:19 Felix Qin
2024-04-29 19:38 ` Avri Altman
2024-04-30  1:27 ` Dragan Simic
2024-05-03 13:14 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox