mmc: pwrseq_simple: add support for one reset control
authorCatalin Popescu <catalin.popescu@leica-geosystems.com>
Thu, 17 Oct 2024 13:19:57 +0000 (15:19 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 25 Oct 2024 14:35:03 +0000 (16:35 +0200)
commit73bf4b7381f772cc2ac105f636bcb514715162b7
treea4f3973d1cb62eefe932f0f55ce1eb5c7a91d7b3
parentde6840095f8ed542308279c4f24fa42ba27c2dd3
mmc: pwrseq_simple: add support for one reset control

Reset controls being refcounted, they allow to share gpios across
drivers. Right now, reset framework and reset-gpio driver supports only
one reset gpio, so add support for one single reset control. If more
than one reset gpio is configured in the device tree, then fallback to
classic gpio control.

Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
Message-ID: <20241017131957.1171323-1-catalin.popescu@leica-geosystems.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/pwrseq_simple.c