MLK-17621-2 mmc: add feature of setting slot index via devicetree alias
authorHaibo Chen <haibo.chen@nxp.com>
Mon, 26 Feb 2018 07:12:18 +0000 (15:12 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:45:50 +0000 (18:45 +0800)
commitc137fedd8de9e19fa5498cf0e5ffeafc4da5cd50
tree83e8b2d557e55762d0657f4afb19e1f3413f952e
parent4a4394d5e802f64867a5a39eaba91c439ae47459
MLK-17621-2 mmc: add feature of setting slot index via devicetree alias

Add feature of setting slot index via devicetree alias, to hard code the
mmc/sd root device.

The patch requires additional alias_id fix or it won't work.

Note: minor device number keep independent with this device alias.

Refer to the commit 35928d6c6a76 ("mmc: Allow setting slot index via
devicetree alias").

Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/host.c
drivers/of/base.c