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

Commit b01f8316 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 8d9222a9 4efe6eb2
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)