diff options
author | Jia-Ju Bai <baijiaju1990@163.com> | 2017-06-01 11:43:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-03 17:52:00 +0900 |
commit | ed99f0141b6a7ac0d197c28b814e67d85ac42452 (patch) | |
tree | 32e0da569647b078e76fc42f06fdcb3b54312524 /ipc | |
parent | 385cab7c7131083cbe09d5f1d06df4544caa272d (diff) | |
download | linux-ed99f0141b6a7ac0d197c28b814e67d85ac42452.tar.bz2 |
rts5208: Fix a sleep-in-atomic bug in rtsx_exclusive_enter_ss
The driver may sleep under a spin lock, and the function call path is:
rtsx_exclusive_enter_ss (acquire the lock by spin_lock)
rtsx_enter_ss
rtsx_power_off_card
sd_cleanup_work
sd_stop_seq_mode
sd_switch_clock
sd_ddr_tuning
sd_ddr_pre_tuning_tx
sd_change_phase
wait_timeout
schedule_timeout --> may sleep
To fix it, "wait_timeout" is replaced with mdelay in sd_change_phase.
Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions