* [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards
@ 2016-08-02 7:33 ` Yangbo Lu
2016-08-08 23:06 ` Jaehoon Chung
0 siblings, 1 reply; 4+ messages in thread
From: Yangbo Lu @ 2016-08-02 7:33 UTC (permalink / raw)
To: u-boot
When the MMC framework was added in u-boot, the mmc_go_idle was
added before mmc_send_op_cond_iter in function mmc_send_op_cond
annotating that some cards seemed to need this. Actually, we still
need to do this in function mmc_complete_op_cond for those cards.
This has been verified on Micron MTFC4GACAECN eMMC chip.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
---
drivers/mmc/mmc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index f8e5f7a..d4e96bc 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -422,6 +422,9 @@ static int mmc_complete_op_cond(struct mmc *mmc)
mmc->op_cond_pending = 0;
if (!(mmc->ocr & OCR_BUSY)) {
+ /* Some cards seem to need this */
+ mmc_go_idle(mmc);
+
start = get_timer(0);
while (1) {
err = mmc_send_op_cond_iter(mmc, 1);
--
2.1.0.27.g96db324
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards
2016-08-02 7:33 ` [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards Yangbo Lu
@ 2016-08-08 23:06 ` Jaehoon Chung
2016-08-09 6:02 ` Yangbo Lu
2016-08-16 1:32 ` Jaehoon Chung
0 siblings, 2 replies; 4+ messages in thread
From: Jaehoon Chung @ 2016-08-08 23:06 UTC (permalink / raw)
To: u-boot
Hi Yangbo,
On 08/02/2016 04:33 PM, Yangbo Lu wrote:
> When the MMC framework was added in u-boot, the mmc_go_idle was
> added before mmc_send_op_cond_iter in function mmc_send_op_cond
> annotating that some cards seemed to need this. Actually, we still
> need to do this in function mmc_complete_op_cond for those cards.
> This has been verified on Micron MTFC4GACAECN eMMC chip.
This patch is not bad.. but i need to verify more about entire sequence.
Could you wait a bit?
Best Regards,
Jaehoon Chung
>
> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
> ---
> drivers/mmc/mmc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index f8e5f7a..d4e96bc 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -422,6 +422,9 @@ static int mmc_complete_op_cond(struct mmc *mmc)
>
> mmc->op_cond_pending = 0;
> if (!(mmc->ocr & OCR_BUSY)) {
> + /* Some cards seem to need this */
> + mmc_go_idle(mmc);
> +
> start = get_timer(0);
> while (1) {
> err = mmc_send_op_cond_iter(mmc, 1);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards
2016-08-08 23:06 ` Jaehoon Chung
@ 2016-08-09 6:02 ` Yangbo Lu
2016-08-16 1:32 ` Jaehoon Chung
1 sibling, 0 replies; 4+ messages in thread
From: Yangbo Lu @ 2016-08-09 6:02 UTC (permalink / raw)
To: u-boot
Hi Jaehoon,
Sure. And appreciate your good help :)
Best regards,
Yangbo Lu
> -----Original Message-----
> From: Jaehoon Chung [mailto:jh80.chung at samsung.com]
> Sent: Tuesday, August 09, 2016 7:06 AM
> To: Yangbo Lu; u-boot at lists.denx.de
> Subject: Re: [v2] mmc: send CMD0 before CMD1 for some MMC cards
>
> Hi Yangbo,
>
> On 08/02/2016 04:33 PM, Yangbo Lu wrote:
> > When the MMC framework was added in u-boot, the mmc_go_idle was added
> > before mmc_send_op_cond_iter in function mmc_send_op_cond annotating
> > that some cards seemed to need this. Actually, we still need to do
> > this in function mmc_complete_op_cond for those cards.
> > This has been verified on Micron MTFC4GACAECN eMMC chip.
>
> This patch is not bad.. but i need to verify more about entire sequence.
> Could you wait a bit?
>
> Best Regards,
> Jaehoon Chung
>
> >
> > Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
> > ---
> > drivers/mmc/mmc.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index
> > f8e5f7a..d4e96bc 100644
> > --- a/drivers/mmc/mmc.c
> > +++ b/drivers/mmc/mmc.c
> > @@ -422,6 +422,9 @@ static int mmc_complete_op_cond(struct mmc *mmc)
> >
> > mmc->op_cond_pending = 0;
> > if (!(mmc->ocr & OCR_BUSY)) {
> > + /* Some cards seem to need this */
> > + mmc_go_idle(mmc);
> > +
> > start = get_timer(0);
> > while (1) {
> > err = mmc_send_op_cond_iter(mmc, 1);
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards
2016-08-08 23:06 ` Jaehoon Chung
2016-08-09 6:02 ` Yangbo Lu
@ 2016-08-16 1:32 ` Jaehoon Chung
1 sibling, 0 replies; 4+ messages in thread
From: Jaehoon Chung @ 2016-08-16 1:32 UTC (permalink / raw)
To: u-boot
Hi Yangbo,
On 08/09/2016 08:06 AM, Jaehoon Chung wrote:
> Hi Yangbo,
>
> On 08/02/2016 04:33 PM, Yangbo Lu wrote:
>> When the MMC framework was added in u-boot, the mmc_go_idle was
>> added before mmc_send_op_cond_iter in function mmc_send_op_cond
>> annotating that some cards seemed to need this. Actually, we still
>> need to do this in function mmc_complete_op_cond for those cards.
>> This has been verified on Micron MTFC4GACAECN eMMC chip.
>
> This patch is not bad.. but i need to verify more about entire sequence.
> Could you wait a bit?
Applied on u-boot-mmc. Thanks!
Best Regards,
Jaehoon Chung
>
> Best Regards,
> Jaehoon Chung
>
>>
>> Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
>> ---
>> drivers/mmc/mmc.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
>> index f8e5f7a..d4e96bc 100644
>> --- a/drivers/mmc/mmc.c
>> +++ b/drivers/mmc/mmc.c
>> @@ -422,6 +422,9 @@ static int mmc_complete_op_cond(struct mmc *mmc)
>>
>> mmc->op_cond_pending = 0;
>> if (!(mmc->ocr & OCR_BUSY)) {
>> + /* Some cards seem to need this */
>> + mmc_go_idle(mmc);
>> +
>> start = get_timer(0);
>> while (1) {
>> err = mmc_send_op_cond_iter(mmc, 1);
>>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-16 1:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20160802074441epcas1p25b3568ee529fe155a5c10760c1411155@epcas1p2.samsung.com>
2016-08-02 7:33 ` [U-Boot] [v2] mmc: send CMD0 before CMD1 for some MMC cards Yangbo Lu
2016-08-08 23:06 ` Jaehoon Chung
2016-08-09 6:02 ` Yangbo Lu
2016-08-16 1:32 ` Jaehoon Chung
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.