Skip to content

Commit

Permalink
mtd/r852: update card detect early.
Browse files Browse the repository at this point in the history
This turns out to be the reason for DMA timeouts on resume,
if card was inserted while system was suspended

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Maxim Levitsky authored and David Woodhouse committed Jun 2, 2010
1 parent 9489be8 commit ac373f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/r852.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ void r852_card_detect_work(struct work_struct *work)
container_of(work, struct r852_device, card_detect_work.work);

r852_card_update_present(dev);
r852_update_card_detect(dev);
dev->card_unstable = 0;

/* False alarm */
Expand All @@ -727,7 +728,6 @@ void r852_card_detect_work(struct work_struct *work)
else
r852_unregister_nand_device(dev);
exit:
/* Update detection logic */
r852_update_card_detect(dev);
}

Expand Down

0 comments on commit ac373f7

Please sign in to comment.