Commit e7f10a52 authored by Russell King's avatar Russell King

[MMC] Fix suspend/resume buglet.

Block wants the queue spinlock and interrupts disabled for
blk_stop_queue() and blk_start_queue().
parent 02ab40ff
......@@ -428,7 +428,11 @@ static int mmc_blk_suspend(struct mmc_card *card, u32 state)
struct mmc_blk_data *md = mmc_get_drvdata(card);
if (md) {
unsigned long flags;
spin_lock_irqsave(&md->lock, flags);
blk_stop_queue(md->queue.queue);
spin_unlock_irqrestore(&md->lock, flags);
}
return 0;
}
......@@ -438,8 +442,12 @@ static int mmc_blk_resume(struct mmc_card *card)
struct mmc_blk_data *md = mmc_get_drvdata(card);
if (md) {
unsigned long flags;
mmc_blk_set_blksize(md, card);
spin_lock_irqsave(&md->lock, flags);
blk_start_queue(md->queue.queue);
spin_unlock_irqrestore(&md->lock, flags);
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment