Re: [PATCH v2 7/8] mmc: mtk-sd: fix hang when data read quickly

2020-01-16 Thread Tom Rini
On Tue, Dec 31, 2019 at 11:29:25AM +0800, mingming lee wrote: > For CMD21 tuning data, the 128/64 bytes data may coming in very > short time, before msdc_start_data(), the read data has already > come, in this case, clear MSDC_INT will cause the interrupt disappear > and lead to the thread hang.

[PATCH v2 7/8] mmc: mtk-sd: fix hang when data read quickly

2019-12-30 Thread mingming lee
For CMD21 tuning data, the 128/64 bytes data may coming in very short time, before msdc_start_data(), the read data has already come, in this case, clear MSDC_INT will cause the interrupt disappear and lead to the thread hang. the solution is just clear all interrupts before command was sent.