mmc: dw_mmc: add common capabilities to replace caps
authorJohn Keeping <john@metanate.com>
Wed, 24 Nov 2021 18:45:59 +0000 (18:45 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Dec 2021 20:35:25 +0000 (21:35 +0100)
commit0dc7a3ec30769aedb32036b785e69ee73d6b653f
tree2259606a88466cf77cc96ec321e98389375e4b9d
parente53e97f805cb1abeea000a61549d42f92cb10804
mmc: dw_mmc: add common capabilities to replace caps

The caps field depends on the mshcN alias ID but for some devices this
is unnecessary as the capabilities are the same for all instances
sharing the same compatible.

Add a common_caps field for this case which updates the host's
capabilities without needing the mshcN alias ID.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Link: https://lore.kernel.org/r/20211124184603.3897245-2-john@metanate.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h