diff options
author | Ulf Hansson <[email protected]> | 2024-11-25 13:24:46 +0100 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2024-12-02 15:37:16 +0100 |
commit | 87a0d90fcd31c0f36da0332428c9e1a1e0f97432 (patch) | |
tree | 5658715629bd9399adb4ac6c7cb319dbf52043e7 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 7f0fa47ceebcff0e3591bb7e32a71a2cd7846149 (diff) |
mmc: core: Further prevent card detect during shutdown
Disabling card detect from the host's ->shutdown_pre() callback turned out
to not be the complete solution. More precisely, beyond the point when the
mmc_bus->shutdown() has been called, to gracefully power off the card, we
need to prevent card detect. Otherwise the mmc_rescan work may poll for the
card with a CMD13, to see if it's still alive, which then will fail and
hang as the card has already been powered off.
To fix this problem, let's disable mmc_rescan prior to power off the card
during shutdown.
Reported-by: Anthony Pighin <[email protected]>
Fixes: 66c915d09b94 ("mmc: core: Disable card detect during shutdown")
Cc: [email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Adrian Hunter <[email protected]>
Closes: https://lore.kernel.org/all/BN0PR08MB695133000AF116F04C3A9FFE83212@BN0PR08MB6951.namprd08.prod.outlook.com/
Tested-by: Anthony Pighin <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions