[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <e57cf579a833364c855f438203dc53a3e626e1c0.1583307441.git.baolin.wang7@gmail.com>
Date: Wed, 4 Mar 2020 15:42:02 +0800
From: Baolin Wang <baolin.wang7@...il.com>
To: adrian.hunter@...el.com, ulf.hansson@...aro.org
Cc: orsonzhai@...il.com, zhang.lyra@...il.com, baolin.wang7@...il.com,
arnd@...db.de, linux-mmc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [RESEND PATCH 3/3] mmc: host: hsq: Support request_atomic() API
Add support to submit a request by request_atomic() API.
Signed-off-by: Baolin Wang <baolin.wang7@...il.com>
---
drivers/mmc/host/mmc_hsq.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/mmc_hsq.c b/drivers/mmc/host/mmc_hsq.c
index 59d2776..fdbaa98 100644
--- a/drivers/mmc/host/mmc_hsq.c
+++ b/drivers/mmc/host/mmc_hsq.c
@@ -41,7 +41,10 @@ static void mmc_hsq_pump_requests(struct mmc_hsq *hsq)
spin_unlock_irqrestore(&hsq->lock, flags);
- mmc->ops->request(mmc, hsq->mrq);
+ if (mmc->ops->request_atomic)
+ mmc->ops->request_atomic(mmc, hsq->mrq);
+ else
+ mmc->ops->request(mmc, hsq->mrq);
}
static void mmc_hsq_update_next_tag(struct mmc_hsq *hsq, int remains)
--
1.9.1
Powered by blists - more mailing lists