On 27 March 2017 at 07:20, H. Nikolaus Schaller hns@goldelico.com wrote:
Am 27.03.2017 um 04:18 schrieb Matthijs van Duin matthijsvanduin@gmail.com: I just noticed that your kernel called eMMC "mmc0" instead of "mmc1", that's confusing as hell. Please apply: https://github.com/mvduin/linux/tree/patch/of-alias
Has this been suggested upstream?
A patch along those lines has been periodically posted on linux-mmc and got rejected for bogus reasons. Basically the linux-mmc devs think that, since you don't have reliable numbering of storage devices on PCs (where typically they are enumerated on discoverable buses), everybody using embedded systems should therefore also suffer with unpredictable numbering of devices.
My patches (or similar ones) have been integrated in Robert Nelson's kernels since he does care about embedded users.
Note that i2c and spi do support DT-provided numbering, except the mcspi driver breaks it. I should perhaps try to upstream that patch, except of course people will complain since it breaks backward compatibility for people who currently hardcode spi device numbers in applications.