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

Commit e6f918bf authored by Pierre Ossman's avatar Pierre Ossman
Browse files

mmc: fix sdio timeout calculation



SDIO doesn't have a CSD so it uses different timeout values than
SD memory.

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent ce252edd
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -231,6 +231,15 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card)
{
{
	unsigned int mult;
	unsigned int mult;


	/*
	 * SDIO cards only define an upper 1 s limit on access.
	 */
	if (mmc_card_sdio(card)) {
		data->timeout_ns = 1000000000;
		data->timeout_clks = 0;
		return;
	}

	/*
	/*
	 * SD cards use a 100 multiplier rather than 10
	 * SD cards use a 100 multiplier rather than 10
	 */
	 */