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

Commit 39bb3250 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: card: set dma_mask as the queue bounce limit"

parents 0ea9f01b 7ea3624c
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -289,6 +289,9 @@ void mmc_cmdq_setup_queue(struct mmc_queue *mq, struct mmc_card *card)
	u64 limit = BLK_BOUNCE_HIGH;
	u64 limit = BLK_BOUNCE_HIGH;
	struct mmc_host *host = card->host;
	struct mmc_host *host = card->host;


	if (mmc_dev(host)->dma_mask && *mmc_dev(host)->dma_mask)
		limit = *mmc_dev(host)->dma_mask;

	queue_flag_set_unlocked(QUEUE_FLAG_NONROT, mq->queue);
	queue_flag_set_unlocked(QUEUE_FLAG_NONROT, mq->queue);
	if (mmc_can_erase(card))
	if (mmc_can_erase(card))
		mmc_queue_setup_discard(mq->queue, card);
		mmc_queue_setup_discard(mq->queue, card);