mmc: pwrseq_simple: Handle !RESET_CONTROLLER properly
authorStefan Wahren <wahrenst@gmx.net>
Fri, 8 Nov 2024 13:06:47 +0000 (14:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Nov 2024 18:38:47 +0000 (19:38 +0100)
commit3f31337cf2a5b48e1a0feaaf6c86dcb2805fd06e
tree51f3798a02be63da6326f88c0585c024ec71c513
parent2508925fb346661bad9f50b497d7ac7d0b6085d0
mmc: pwrseq_simple: Handle !RESET_CONTROLLER properly

The recent introduction of reset control in pwrseq_simple introduced
a regression for platforms without RESET_CONTROLLER support, because
devm_reset_control_get_optional_shared() would return NULL and make all
resets no-ops. Instead of enforcing this dependency, rely on this behavior
to determine reset support. As a benefit we can get the rid of the
use_reset flag.

Fixes: 73bf4b7381f7 ("mmc: pwrseq_simple: add support for one reset control")
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Message-ID: <20241108130647.8281-1-wahrenst@gmx.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/pwrseq_simple.c