linux-stable/drivers/staging/rts5208
Jia-Ju Bai ed99f0141b 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>
2017-06-03 17:52:00 +09:00
..
general.c
general.h
Kconfig
Makefile
ms.c staging: rts5208: ms.c fixed checkpatch warning - using __func__ instead of hardcoded name 2017-04-08 17:05:59 +02:00
ms.h staging: rts5208: ms.h: Parenthesis alignment 2016-10-16 10:27:10 +02:00
rtsx.c staging: rts5208: remove unncessary result set and check, just return SUCCESS 2017-02-03 13:01:36 +01:00
rtsx.h staging: rts5208: Add space around operator 2016-10-16 10:26:53 +02:00
rtsx_card.c staging: rts5208: Comparison to NULL 2016-10-16 10:27:02 +02:00
rtsx_card.h staging: rts5208: Unecessary parantheses 2016-10-16 10:26:58 +02:00
rtsx_chip.c staging: rts5208: Replace a bit shift by a use of BIT. 2017-03-23 14:25:33 +01:00
rtsx_chip.h staging: rts5208: rtxs_chip.h: Long lines 2016-10-16 10:27:18 +02:00
rtsx_scsi.c staging: rts5208: rtsx_scsi.h: Long lines 2016-10-16 10:27:17 +02:00
rtsx_scsi.h staging: rts5208: Alignment fix 2016-10-16 10:26:46 +02:00
rtsx_sys.h staging: rts5208: Unnecessary parentheses cleanup 2016-10-16 10:26:45 +02:00
rtsx_transport.c staging: rts5208: Remove unnecessary cast on void pointer 2017-03-09 18:50:05 +01:00
rtsx_transport.h staging: rts5208: Alignment fixes 2016-10-16 10:26:44 +02:00
sd.c rts5208: Fix a sleep-in-atomic bug in rtsx_exclusive_enter_ss 2017-06-03 17:52:00 +09:00
sd.h staging: rts5208: sd.h: Alignment fixes 2016-10-16 10:26:36 +02:00
spi.c staging: rts5208: spi.c: Alignment fixes 2016-10-16 10:26:35 +02:00
spi.h
TODO
trace.c
trace.h
xd.c staging: rts5208: xd.c: Remove multiple assignments 2016-10-16 10:25:05 +02:00
xd.h