Re: [PATCH RESEND] mmc: core: try to use an id from the devicetree

From: Doug Anderson
Date: Thu Jun 20 2019 - 17:17:08 EST


On Thu, Jun 20, 2019 at 8:37 AM Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
> + Doug
> On Thu, 20 Jun 2019 at 17:24, Lubomir Rintel <lkundrak@xxxxx> wrote:
> >
> > If there's a mmc* alias in the device tree, take the device number from
> > it, so that we end up with a device name that matches the alias.
> Lots of people would be happy if I queue something along the lines of
> what you propose. I am not really having any big problems with it, but
> I am reluctant to queue it because of other peoples quite strong
> opinions [1] that have been expressed in regards to this already.
> Kind regards
> Uffe
> [1]

Yeah, I personally like being able to assign numbers too, but
unfortunately there are lots of people who objected. BTW: if you
prefer the patchwork view of the same discussion that Ulf pointed to:

As per that discussion, I think might be OK if we could find a way to
assign a string-based name to devices. Then if your user manual calls
them "emmc", "sd", and "sdio" you could name them that way. ...and if
your manual calls them "emmc", "sd0", "sd1" you could name them that
way. ...but I wouldn't swear that people would actually truly like

Given the total number of people who keep feeling like this is an
issue that needs to be solved, though, it does seem worthwhile for
someone to come up with a solution.