[PATCH 4/5] memstick: ms_block: keep the power off during a full msb_reset()

From: Ho Jie Feng

Date: Mon Nov 09 2026 - 10:43:02 EST


Keep the power off for long enough so that the card properly
power cycles.

Fixes: 0ab30494bc4f ("memstick: add support for legacy memorysticks")
Signed-off-by: Ho Jie Feng <hjf3108@xxxxxxxxx>
---
drivers/memstick/core/ms_block.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c
index e373eaf92530f..66672235a4584 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -740,6 +740,9 @@ static int msb_reset(struct msb_data *msb, bool full)

msb_invalidate_reg_window(msb);

+ /* Allow enough time for the card to fully power off */
+ msleep(20);
+
error = host->set_param(host,
MEMSTICK_POWER, MEMSTICK_POWER_ON);
if (error)
--
2.56.0