]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Remove error check of hw_reset on reset
authorChristian Löhle <CLoehle@hyperstone.com>
Thu, 13 Oct 2022 11:16:37 +0000 (11:16 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Oct 2022 09:51:33 +0000 (11:51 +0200)
commit085b8fa5e1fe5a3011ba1ede60358f0b3b77b001
treec61e7a552e676250fb86d44688937d17f4222730
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
mmc: block: Remove error check of hw_reset on reset

Before switching back to the right partition in mmc_blk_reset there used
to be a check if hw_reset was even supported. This return value
was removed, so there is no reason to check. Furthermore ensure
part_curr is not falsely set to a valid value on reset or
partition switch error.

As part of this change the code paths of mmc_blk_reset calls were checked
to ensure no commands are issued after a failed mmc_blk_reset directly
without going through the block layer.

Fixes: 5e46c7dc076a ("mmc: core: Drop superfluous validations in mmc_hw|sw_reset()")
Cc: stable@vger.kernel.org
Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/e91be6199d04414a91e20611c81bfe1d@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c