diff options
| author | Christian Löhle <[email protected]> | 2022-10-13 11:16:37 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2022-10-17 09:51:33 +0000 |
| commit | 406e14808ee695cbae1eafa5fd3ac563c29470ab (patch) | |
| tree | c61e7a552e676250fb86d44688937d17f4222730 /drivers/mmc/core/queue.c | |
| parent | Linux 6.1-rc1 (diff) | |
| download | kernel-406e14808ee695cbae1eafa5fd3ac563c29470ab.tar.gz kernel-406e14808ee695cbae1eafa5fd3ac563c29470ab.zip | |
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: fefdd3c91e0a ("mmc: core: Drop superfluous validations in mmc_hw|sw_reset()")
Cc: [email protected]
Signed-off-by: Christian Loehle <[email protected]>
Reviewed-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions
