diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2023-01-13 14:00:10 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2023-01-23 17:51:38 +0300 |
commit | f3200164b47922f7a4cb8a8504046d0b3b8d143b (patch) | |
tree | 03ba093544f2724167eb7dc99a859e3a459b4b0d /drivers/mmc/host/sdhci-of-aspeed.c | |
parent | 4f1896ddf6ec0a393a84a5559cd99f1be55d3d71 (diff) | |
download | linux-f3200164b47922f7a4cb8a8504046d0b3b8d143b.tar.xz |
mmc: sdhci-iproc: Replace SDHCI_QUIRK_MISSING_CAPS
SDHCI_QUIRK_MISSING_CAPS is not needed because __sdhci_read_caps() can be
called instead.
In preparation to get rid of SDHCI_QUIRK_MISSING_CAPS, replace
SDHCI_QUIRK_MISSING_CAPS with __sdhci_read_caps().
__sdhci_read_caps() is also called from sdhci_setup_host() via
sdhci_read_caps(), however only the first call to __sdhci_read_caps() does
anything because after that host->read_caps has been set to true.
Note, __sdhci_read_caps() does more than just set host->caps, such as do a
reset, so calling __sdhci_read_caps() earlier could have unforeseen
side-effects. However the code flow has been reviewed with that in mind.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Link: https://lore.kernel.org/r/20230113110011.129835-6-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-of-aspeed.c')
0 files changed, 0 insertions, 0 deletions