mmc: block: Support the fixed index for mmcblk with aliases nodes 89/199889/2
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Mar 2016 10:43:34 +0000 (19:43 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 19 Feb 2019 03:59:09 +0000 (03:59 +0000)
commit54d9cf9443519b1596a91ec18e6f2269889bcfd6
tree0a505cfa37951acdf3c82f773e146676d951c8d5
parent5898a1c967a00c66d4bf863b6fb5b2ada89a71fb
mmc: block: Support the fixed index for mmcblk with aliases nodes

Now, index of mmcblk is allocated in accordance with probing time.
If want to use the mmcblk1 for some device, it can use alias.

aliases {
mmc0 = &mmc0; /* mmcblk0 for eMMC */
mmc1 = &mmc2; /* mmcblk1 for SD */
mmc2 = &mmc1; /* mmcblk2 for SDIO*/
};

If there are no corresponding values, it might be allocated with
existing scheme.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[sw0312.kim: port to v4.14
 - apply to host index instead of name_idx because host index is used in this version
]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I44673d62e546ea0aeedd9cac314dbfd31fdcce66
Documentation/devicetree/bindings/mmc/mmc.txt
drivers/mmc/core/host.c