Commit ac373f7e authored by Maxim Levitsky's avatar Maxim Levitsky Committed by David Woodhouse

mtd/r852: update card detect early.

This turns out to be the reason for DMA timeouts on resume,
if card was inserted while system was suspended
Signed-off-by: default avatarMaxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 9489be8c
...@@ -712,6 +712,7 @@ void r852_card_detect_work(struct work_struct *work) ...@@ -712,6 +712,7 @@ void r852_card_detect_work(struct work_struct *work)
container_of(work, struct r852_device, card_detect_work.work); container_of(work, struct r852_device, card_detect_work.work);
r852_card_update_present(dev); r852_card_update_present(dev);
r852_update_card_detect(dev);
dev->card_unstable = 0; dev->card_unstable = 0;
/* False alarm */ /* False alarm */
...@@ -727,7 +728,6 @@ void r852_card_detect_work(struct work_struct *work) ...@@ -727,7 +728,6 @@ void r852_card_detect_work(struct work_struct *work)
else else
r852_unregister_nand_device(dev); r852_unregister_nand_device(dev);
exit: exit:
/* Update detection logic */
r852_update_card_detect(dev); r852_update_card_detect(dev);
} }
......
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