Re: rtsx_pci_sdmmc lockdep splat

2014-04-21 Thread micky
Hi Borislav Thank you for test the patch. It seems we can't use tasklet here due to mutex_lock. And the spinlock may removed, I'm prepare to resend a different patch later. Best Regards. micky On 04/20/2014 08:20 PM, Borislav Petkov wrote: Hi, On Wed, Apr 16, 2014 at 09:50:15AM +0800, micky

Re: rtsx_pci_sdmmc lockdep splat

2014-04-20 Thread Borislav Petkov
Hi, On Wed, Apr 16, 2014 at 09:50:15AM +0800, micky wrote: > From: Micky Ching > > To avoid dead lock, we need make sure host->lock is always acquire > before pcr->lock. But in irq handler, we acquired pcr->lock in rtsx mfd > driver, and sd_isr_done_transfer() is called during pcr->lock already >

Re: rtsx_pci_sdmmc lockdep splat

2014-04-15 Thread micky
Hi Borislav, On 04/16/2014 01:49 AM, Borislav Petkov wrote: Hi all, I'm seeing the following when I insert an sd card. Kernel is 3.15-rc1+. Thanks. The patch below may fix this problem. From: Micky Ching To avoid dead lock, we need make sure host->lock is always acquire before pcr->lock. Bu

rtsx_pci_sdmmc lockdep splat

2014-04-15 Thread Borislav Petkov
Hi all, I'm seeing the following when I insert an sd card. Kernel is 3.15-rc1+. Thanks. [ 682.675345] rtsx_pci_sdmmc rtsx_pci_sdmmc.0: sdmmc_get_cd: RTSX_BIPR = 0x0001 [ 682.679723] mmc0: mmc_rescan_try_freq: trying to init card at 40 Hz [ 682.683778] mmc0: clock 0Hz busmode 2 powerm