]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Add locking around cmd11 timer
authorDoug Anderson <dianders@chromium.org>
Fri, 3 Apr 2015 18:13:07 +0000 (11:13 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Apr 2015 07:08:32 +0000 (09:08 +0200)
commit3bd27eebd5a06c1d40c4725b31652d16f113658e
tree5278c1a485d331df11679c9b76bca0e09257d286
parent1fb9bd36167a3632c34740c3411d6c14e35bb2e3
mmc: dw_mmc: Add locking around cmd11 timer

It is possible for the cmd11 interrupt to fire and delete the
cmd11_timer before the cmd11_timer was actually setup.  Let's fix this
race by adding a few spinlocks.  Note that the race wasn't seen in
practice without adding some printk statements, but it still seems
wise to fix.

Fixes: 6134a6f05014 ("mmc: dw_mmc: Add a timeout for sending CMD11")
Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c