Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4efe6eb2 authored by Neeraj Soni's avatar Neeraj Soni Committed by Gerrit - the friendly Code Review server
Browse files

mmc: cqhci: SDHCI may not work in command queue mode



Check for command queue host as SDHCI controller may work
in non-command queue mode as well, for example, external
storage slot.

Change-Id: Idc1fc3c36f2a8edd8337df5540ce6fce2e078719
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent 3423e083
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -753,7 +753,18 @@ static int cqhci_request(struct mmc_host *mmc, struct mmc_request *mrq)
static void cqhci_crypto_update_queue(struct mmc_host *mmc,
					struct request_queue *queue)
{
	struct cqhci_host *cq_host = mmc->cqe_private;
	struct cqhci_host *cq_host;

	if (!mmc) {
		pr_err("%s mmc host is NULL\n", __func__);
		return;
	}

	cq_host = mmc->cqe_private;
	if (!cq_host) {
		pr_err("%s cq host is NULL\n", __func__);
		return;
	}

	if (cq_host->caps & CQHCI_CAP_CRYPTO_SUPPORT) {
		if (queue)