Re: [PATCH v2] mmc: core: fix __mmc_switch timeout caused by preempt

2015-11-26 Thread Ulf Hansson
On 26 November 2015 at 13:36, Chaotian Jing wrote: > there is a time window between __mmc_send_status() and time_afer(), > on some eMMC chip, the timeout_ms is only 10ms, if this thread was > scheduled out during this period, then, even card has already changes > to

[PATCH v2] mmc: core: fix __mmc_switch timeout caused by preempt

2015-11-26 Thread Chaotian Jing
there is a time window between __mmc_send_status() and time_afer(), on some eMMC chip, the timeout_ms is only 10ms, if this thread was scheduled out during this period, then, even card has already changes to transfer state by the result of CMD13, this part of code also treat it to timeout error.