summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/renesas_sdhi_internal_dmac.c
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2022-06-24 21:14:37 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2022-07-12 13:27:08 +0300
commit0dac1e498f8130fdacfdd5289e3a7ac87ec1b9ad (patch)
treef9352844ad3af491fe542caeaf355aac9d665ba4 /drivers/mmc/host/renesas_sdhi_internal_dmac.c
parent39c86b5c59a414cf2a94dbd6956a9a8e70188673 (diff)
downloadlinux-0dac1e498f8130fdacfdd5289e3a7ac87ec1b9ad.tar.xz
mmc: renesas_sdhi: Get the reset handle early in the probe
In case of devm_reset_control_get_optional_exclusive() failure we returned directly instead of jumping to the error path to roll back initialization. This patch moves devm_reset_control_get_optional_exclusive() early in the probe so that we have the reset handle prior to initialization of the hardware. Fixes: b4d86f37eacb7 ("mmc: renesas_sdhi: do hard reset if possible") Reported-by: Pavel Machek <pavel@denx.de> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20220624181438.4355-2-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/renesas_sdhi_internal_dmac.c')
0 files changed, 0 insertions, 0 deletions