public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/6] mxs: mmc: Allow overriding default card detect implementation
Date: Thu, 24 Jan 2013 19:34:50 +0100	[thread overview]
Message-ID: <201301241934.50675.marex@denx.de> (raw)
In-Reply-To: <201301241929.59266.marex@denx.de>

Dear Stefano Babic,
[...]

> > > diff --git a/board/bluegiga/apx4devkit/apx4devkit.c
> > > b/board/bluegiga/apx4devkit/apx4devkit.c index 029b973..5927693 100644
> > > --- a/board/bluegiga/apx4devkit/apx4devkit.c
> > > +++ b/board/bluegiga/apx4devkit/apx4devkit.c
> > > @@ -69,7 +69,7 @@ int board_init(void)
> > > 
> > >  #ifdef CONFIG_CMD_MMC
> > >  int board_mmc_init(bd_t *bis)
> > >  {
> > > 
> > > -	return mxsmmc_initialize(bis, 0, NULL);
> > > +	return mxsmmc_initialize(bis, 0, NULL, NULL);
> > 
> > I see, but it seems to me that mxs is doing different as other SOCs. If
> > there is nothing to set, cpu_mmc_init() should be used, dropping
> > board_mmc_init(). And we implement board_mmc_init() only for boards that
> > really need it, not for all.
> 
> That's also an option ... do you want subsequent patch or respin of the
> series?

Actually, check how it's distributed:

$ git grep mxsmmc_initialize board | sed "s at .*/@@"
apx4devkit.c:   return mxsmmc_initialize(bis, 0, NULL, NULL);
m28evk.c:       return mxsmmc_initialize(bis, 0, m28_mmc_wp, NULL);
mx28evk.c:      return mxsmmc_initialize(bis, 0, mx28evk_mmc_wp, NULL);
mx23_olinuxino.c:       return mxsmmc_initialize(bis, 0, NULL, mx23_olx_mmc_cd);
sc_sps_1.c:     return mxsmmc_initialize(bis, 0, NULL, NULL);

We have quite a bit of variance there. I wonder if using cpu_mmc_init() is worth 
it.

Best regards,
Marek Vasut

  parent reply	other threads:[~2013-01-24 18:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23  1:01 [U-Boot] [PATCH 1/6] mxs: dma: Fix APBH DMA driver for MX23 Marek Vasut
2013-01-23  1:01 ` [U-Boot] [PATCH 2/6] mxs: ssp: Add SSP registers map " Marek Vasut
2013-01-23  1:01 ` [U-Boot] [PATCH 3/6] mxs: mmc: Fix MMC reset on iMX23 Marek Vasut
2013-01-23  1:01 ` [U-Boot] [PATCH 4/6] mxs: mmc: Allow overriding default card detect implementation Marek Vasut
2013-01-24 18:27   ` Stefano Babic
2013-01-24 18:29     ` Marek Vasut
2013-01-24 18:33       ` Stefano Babic
2013-01-24 18:39         ` Marek Vasut
2013-01-24 18:34       ` Marek Vasut [this message]
2013-01-28  5:30         ` Stefano Babic
2013-01-23  1:01 ` [U-Boot] [PATCH 5/6] mxs: mmc: Fix the MMC driver for MX23 Marek Vasut
2013-01-23  1:01 ` [U-Boot] [PATCH 6/6] mxs: mmc: mx23_olinuxino: Add MMC support Marek Vasut
2013-01-23  1:23   ` Fabio Estevam
2013-01-23  3:33     ` Marek Vasut
2013-01-23  3:51       ` Fabio Estevam
2013-01-23 12:24         ` Otavio Salvador
2013-01-24 18:22 ` [U-Boot] [PATCH 1/6] mxs: dma: Fix APBH DMA driver for MX23 Stefano Babic
2013-01-24 18:27   ` Marek Vasut
2013-01-28 10:53 ` Stefano Babic

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=201301241934.50675.marex@denx.de \
    --to=marex@denx.de \
    --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