Roger Tseng b166010f6a mfd: rtsx_usb: Fix runtime PM deadlock
sd_set_power_mode() in derived module drivers/mmc/host/rtsx_usb_sdmmc.c
acquires dev_mutex and then calls pm_runtime_get_sync() to make sure the
device is awake while initializing a newly inserted card. Once it is
called during suspending state and explicitly before rtsx_usb_suspend()
acquires the same dev_mutex, both routine deadlock and further hang the
driver because pm_runtime_get_sync() waits the pending PM operations.

Fix this by using an empty suspend method. mmc_core always turns the
LED off after a request is done and thus it is ok to remove the only
rtsx_usb_turn_off_led() here.

Cc: <stable@vger.kernel.org> # v3.16+
Fixes: 730876be2566 ("mfd: Add realtek USB card reader driver")
Signed-off-by: Roger Tseng <rogerable@realtek.com>
[Lee: Removed newly unused variable]
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2015-01-20 12:52:55 +00:00
..
2014-03-19 08:58:37 +00:00
2014-11-25 16:18:43 +00:00
2014-06-06 12:08:39 -07:00
2013-07-31 13:01:29 +01:00
2013-08-20 03:16:00 +02:00
2013-07-31 13:01:29 +01:00
2014-10-15 06:58:16 +02:00
2013-07-31 13:01:29 +01:00
2014-12-08 20:02:54 -08:00
2014-09-26 08:23:56 +01:00
2013-07-31 13:01:29 +01:00
2014-11-10 15:21:58 +00:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-11-25 16:18:56 +00:00
2014-12-14 16:10:09 -08:00
2014-09-26 08:15:37 +01:00
2013-07-31 13:01:29 +01:00
2013-07-31 13:01:29 +01:00