From: Jaehoon Chung <jh80.chung@samsung.com>
To: "S, Venkatraman" <svenkatr@ti.com>
Cc: Namjae Jeon <linkinjeon@gmail.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Subject: Re: [PATCH v2] mmc: core: Fix the HPI execution sequence
Date: Wed, 18 Apr 2012 21:54:03 +0900 [thread overview]
Message-ID: <4F8EB96B.4080209@samsung.com> (raw)
In-Reply-To: <CANfBPZ9pq6=iNHuDBrwTj-_AwZa-BoGZsYP0FVBXb=9GKEF01g@mail.gmail.com>
On 04/18/2012 05:42 PM, S, Venkatraman wrote:
> On Wed, Apr 18, 2012 at 1:53 PM, Namjae Jeon <linkinjeon@gmail.com> wrote:
>> 2012/4/18 S, Venkatraman <svenkatr@ti.com>:
>>> On Wed, Apr 18, 2012 at 10:15 AM, Namjae Jeon <linkinjeon@gmail.com> wrote:
>>>> 2012/4/18 Jaehoon Chung <jh80.chung@samsung.com>:
>>>>> On 04/18/2012 09:20 AM, Namjae Jeon wrote:
>>>>>
>>>>>> 2012/4/17 Venkatraman S <svenkatr@ti.com>:
>>>>>>> mmc_execute_hpi should send the HPI command only
>>>>>>> once, only if the card is in PRG state.
>>>>>>>
>>>>>>> According to eMMC spec, the command's completion time is
>>>>>>> not dependent on OUT_OF_INTERRUPT_TIME. Only the transition
>>>>>>> out of PRG STATE is guarded by OUT_OF_INTERRUPT_TIME - which is
>>>>>>> defined to begin at the end of sending the command itself.
>>>>>> Hi. Venkatraman.
>>>>>> I can not find this words. " the command's completion time is not
>>>>>> dependent on OUT_OF_INTERRUPT_TIME" .
>>>>>> Would you inform me which page and which part you checked in specification ?
>>>>>
>>>>> Well, i know that timeout value is used the OUT_OF_INTERRUPT_TIME, when interrupted by HPI.
>>>>> It's my misunderstanding?
>>>> I agree, I also understand with you. But we should hear Venkatraman's
>>>> opinion from next reply.
>>>> see the spec.
>>>
>>> That particular line was explicit, *emphasis* mine..
>>> In Section 6.8.2 "OUT_OF_INTERRUPT_TIME defines the maximum time
>>> between the *end* bit of CMD12/13, arg[0]=1 to the DAT0 release of the
>>> device."
>>>
>>> Which essentially means the timer should start after the HPI command
>>> has been exchanged, and should normally end when the DAT0 line is
>>> released (in other words, move out of PRG state).
>>> You can see the same definition in Section 7.4.33
>>>
>>> The definition in 6.6.23, is partly confusing, for one it uses
>>> OUT_OF_INTERRUPT_BUSY_TIME and not OUT_OF_INTERRUPT_TIME, and other,
>>> it refers to the command being *interrupted by* HPI, not the HPI
>>> command itself.
>>>
>>> Let me know if this explains it a bit better.
>>>
>>> Best regards,
>>> Venkat.
>> Hi. Venkat.
>> You're right. OUT_OF_INTERRUPT_TIME is range between Busy line(Data0)
>> released by device and end bit of CMD 12,13.
>> and I would like you change some code in this patch.
>> I think that break is better than goto. because it is not duplicated loop.
>> + if (!err && R1_CURRENT_STATE(status) == R1_STATE_TRAN)
>> + goto out;
>>
>> you don't need to initialize cmd_timeout_ms value. because you can see
>> struct mmc_command cmd = {0}; code.
>> + cmd.cmd_timeout_ms = 0;
>>
>> Thanks.
>>
>
> Great - thanks for your review and feedback. I'll post a new patch
> after making the changes you
Thanks for your explanation. it makes sense.
If you resend the patch, i will test with your patch.
Best Regards,
Jaehoon Chung
> requested.
> Regards,
> Venkat.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2012-04-18 12:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 13:45 [PATCH v2] mmc: core: Fix the HPI execution sequence Venkatraman S
2012-04-18 0:20 ` Namjae Jeon
2012-04-18 1:40 ` Jaehoon Chung
2012-04-18 4:45 ` Namjae Jeon
2012-04-18 6:20 ` S, Venkatraman
2012-04-18 8:23 ` Namjae Jeon
2012-04-18 8:42 ` S, Venkatraman
2012-04-18 12:54 ` Jaehoon Chung [this message]
2012-04-18 14:49 ` S, Venkatraman
2012-04-18 14:45 ` [PATCH] " Venkatraman S
2012-04-18 23:03 ` Namjae Jeon
2012-04-19 1:52 ` Jaehoon Chung
2012-04-19 4:22 ` S, Venkatraman
2012-04-19 4:25 ` Chris Ball
2012-04-19 4:43 ` [PATCH v2] " Venkatraman S
2012-04-19 13:35 ` Chris Ball
2012-04-19 13:43 ` S, Venkatraman
2012-04-19 14:38 ` Venkatraman S
2012-05-09 13:17 ` kdorfman
2012-05-09 13:53 ` S, Venkatraman
2012-05-09 14:06 ` kdorfman
2012-05-09 14:12 ` S, Venkatraman
2012-05-10 15:08 ` kdorfman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8EB96B.4080209@samsung.com \
--to=jh80.chung@samsung.com \
--cc=cjb@laptop.org \
--cc=linkinjeon@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=svenkatr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.