Re: [PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-20 Thread Lee Jones
On Wed, 21 Jan 2015, Roger Tseng wrote: > On Tue, 2015-01-20 at 16:07 +, Lee Jones wrote: > > On Tue, 20 Jan 2015, Roger Tseng wrote: > > > > > On Mon, 2015-01-19 at 09:45 +, Lee Jones wrote: > > > > On Thu, 15 Jan 2015, Roger Tseng wrote: > > > > > > > > > sd_set_power_mode() in derived

Re: [PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-20 Thread Roger Tseng
On Tue, 2015-01-20 at 16:07 +, Lee Jones wrote: > On Tue, 20 Jan 2015, Roger Tseng wrote: > > > On Mon, 2015-01-19 at 09:45 +, Lee Jones wrote: > > > On Thu, 15 Jan 2015, Roger Tseng wrote: > > > > > > > sd_set_power_mode() in derived module drivers/mmc/host/rtsx_usb_sdmmc.c > > > > acqui

Re: [PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-20 Thread Lee Jones
On Tue, 20 Jan 2015, Roger Tseng wrote: > On Mon, 2015-01-19 at 09:45 +, Lee Jones wrote: > > On Thu, 15 Jan 2015, Roger Tseng wrote: > > > > > 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 th

Re: [PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-20 Thread Roger Tseng
On Mon, 2015-01-19 at 09:45 +, Lee Jones wrote: > On Thu, 15 Jan 2015, Roger Tseng wrote: > > > 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 in

Re: [PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-19 Thread Lee Jones
On Thu, 15 Jan 2015, Roger Tseng wrote: > 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 e

[PATCH 1/2] mfd: rtsx_usb: Fix runtime PM deadlock

2015-01-14 Thread Roger Tseng
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