mmc: sdhci-of-arasan: fix using sleep function whthin spinlock
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 5 May 2016 03:03:22 +0000 (11:03 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 5 May 2016 06:47:31 +0000 (14:47 +0800)
commita7a3b1a72d219fd3eb98403c9dfc0ef1fc55ebbd
tree5bf80c03bd39910ddcbab7a80471a247c44c5342
parentc1b1c53c7edcbd99d123c0e212d0634d290a027f
mmc: sdhci-of-arasan: fix using sleep function whthin spinlock

Let's use unlock/lock around phy APIs as them will call
mutex which is sleepable casuing failure of kernel debug
check.

Change-Id: Ic7670bfc9ed763cc9bdec53f85f553bc0be1416c
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/host/sdhci-of-arasan.c