devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Set mmc(blk)X with DT alias
@ 2013-07-24  9:09 Steffen Trumtrar
  2013-07-24  9:09 ` [RFC 1/2] mmc: block: allow setting name_idx via devicetree Steffen Trumtrar
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Steffen Trumtrar @ 2013-07-24  9:09 UTC (permalink / raw)
  To: linux-mmc; +Cc: Chris Ball, devicetree, kernel, Steffen Trumtrar

Hi!

Embedded devices often use multiple SD/MMC devices as boot/rootfs disks.
Some of them are removable, some not. If the removable cards are not
present, but are probed before the non-removable ones, the indexing
scheme changes. This makes it harder to hard-code the rootfs in the
cmdline.

First solution I came up with was the alias-node in DT.
I guess my implementation is pretty hacky and ugly, but you can get lost
pretty fast in the whole mmc stack.
For example, the second patch should use "card->host->index" instead of parsing
the alias again, I guess. I'm not sure why it currently doesn't though.

So, if there is a better place or solution to specify a reliable ordering
of mmc devices, please let me hear it.

Thanks,
Steffen


Steffen Trumtrar (2):
  mmc: block: allow setting name_idx via devicetree
  mmc: host: allow setting index via devicetree

 drivers/mmc/card/block.c | 7 ++++++-
 drivers/mmc/core/host.c  | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
1.8.3.2


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

end of thread, other threads:[~2013-07-26  8:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24  9:09 [RFC 0/2] Set mmc(blk)X with DT alias Steffen Trumtrar
2013-07-24  9:09 ` [RFC 1/2] mmc: block: allow setting name_idx via devicetree Steffen Trumtrar
2013-07-24  9:09 ` [RFC 2/2] mmc: host: allow setting index " Steffen Trumtrar
2013-07-25 17:28 ` [RFC 0/2] Set mmc(blk)X with DT alias Stephen Warren
2013-07-26  8:09   ` Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).