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

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

Merge "mmc: sdhci: Fix max segments and max req size for PIO mode"

parents afb3a69f 70a8b0af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3833,14 +3833,14 @@ int sdhci_add_host(struct sdhci_host *host)
	else if (host->flags & SDHCI_USE_SDMA)
		mmc->max_segs = 1;
	else/* PIO */
		mmc->max_segs = host->adma_max_desc;
		mmc->max_segs = 128;

	/*
	 * Maximum number of sectors in one transfer. Limited by DMA boundary
	 * size (512KiB), unless specified by platform specific driver. Each
	 * descriptor can transfer a maximum of 64KB.
	 */
	if (host->ops->get_max_segments)
	if (host->flags & SDHCI_USE_ADMA)
		mmc->max_req_size = (host->adma_max_desc * 65536);
	else
		mmc->max_req_size = 524288;