On Mon, Oct 31, 2022 at 09:39:53AM +0000, Christian Löhle wrote: > commit 406e14808ee6 upstream > > 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()") > > Signed-off-by: Christian Loehle <cloehle@xxxxxxxxxxxxxx> > --- > drivers/mmc/core/block.c | 44 ++++++++++++++++++++++++---------------- > 1 file changed, 26 insertions(+), 18 deletions(-) Now queued up, thanks. greg k-h