public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] cmd_mmc.c: check mmc_init() during mmc dev
Date: Thu, 22 May 2014 10:11:31 -0600	[thread overview]
Message-ID: <537E21B3.20402@wwwdotorg.org> (raw)
In-Reply-To: <537D55B9.6080203@samsung.com>

On 05/21/2014 07:41 PM, Jaehoon Chung wrote:
> On 05/22/2014 01:18 AM, Stephen Warren wrote:
>> On 05/20/2014 11:40 PM, Jaehoon Chung wrote:
>>> Hi, Stephen.
>>>
>>> i didn't apply your patch. Which repository do you use?
>>
>> It's based on u-boot.git master branch. The latest u-boot-mmc.git master
>> branch is already included in that branch, and it looks like some
>> changes have been applied to cmd_mmc.c in u-boot/master that aren't in
>> u-boot-mmc/master.
> 
> I have pulled the latest u-boot.git, but it didn't apply this patch.
> If i missed something, let me know plz.

Ah, I guess I hadn't noticed there's an interaction (context changes)
with some other MMC-related patches that I sent:

http://patchwork.ozlabs.org/patch/346771/
[U-Boot,1/4] cmd_part: fix type in part command help text

http://patchwork.ozlabs.org/patch/346770/
[U-Boot,2/4] disk: support devices with HW partitions

http://patchwork.ozlabs.org/patch/346768/
[U-Boot,3/4] mmc: provide a select_hwpart implementation for get_device()

http://patchwork.ozlabs.org/patch/346769/
[U-Boot,4/4] cmd_mmc: use new mmc_select_hwpart() function

So, you can either apply those first, or use "git am -3" rather than
"git am", plus declare "int ret"; patch 4/4 above does that.

>>> Well, if you want to check, can be used "if (mmc_init(mmc))".
>>>
>>> And i'm not sure whether this code is really need or not.
>>
>> Why not? This code is required to solve the problem described in the
>> commit description:
> 
> I will try to reproduce the problem described in the commit-msg.
> Because, i didn't reproduce it, so i'm not sure. 

> But to control the return value, it's reasonable, right?

Yes, I think so.

  reply	other threads:[~2014-05-22 16:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20 16:57 [U-Boot] [PATCH V2] cmd_mmc.c: check mmc_init() during mmc dev Stephen Warren
2014-05-21  5:40 ` Jaehoon Chung
2014-05-21 16:18   ` Stephen Warren
2014-05-22  1:41     ` Jaehoon Chung
2014-05-22 16:11       ` Stephen Warren [this message]
2014-05-23 18:59 ` Stephen Warren
2014-06-12 11:13   ` Pantelis Antoniou

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=537E21B3.20402@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox