[RFC 0/2] Set mmc(blk)X with DT alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux