[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1496625689-27548-1-git-send-email-baijiaju1990@163.com>
Date: Mon, 5 Jun 2017 09:21:29 +0800
From: Jia-Ju Bai <baijiaju1990@....com>
To: gregkh@...uxfoundation.org, wporter82@...il.com,
sergio.paracuellos@...il.com, aquannie@...il.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Jia-Ju Bai <baijiaju1990@....com>
Subject: [PATCH] rt5208: Fix a sleep-in-atomic bug in xd_copy_page
Signed-off-by: Jia-Ju Bai <baijiaju1990@....com>
---
drivers/staging/rts5208/xd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c
index 85aba05..74d36f9 100644
--- a/drivers/staging/rts5208/xd.c
+++ b/drivers/staging/rts5208/xd.c
@@ -1268,7 +1268,7 @@ static int xd_copy_page(struct rtsx_chip *chip, u32 old_blk, u32 new_blk,
reg = 0;
rtsx_read_register(chip, XD_CTL, ®);
if (reg & (XD_ECC1_ERROR | XD_ECC2_ERROR)) {
- wait_timeout(100);
+ mdelay(100);
if (detect_card_cd(chip,
XD_CARD) != STATUS_SUCCESS) {
--
1.7.9.5
Powered by blists - more mailing lists