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

Commit 96a85d54 authored by Girish K S's avatar Girish K S Committed by Chris Ball
Browse files

mmc: core: Fix setting power notify state variable for non-eMMC



This patch skips the setting of the power notify state variable
for non eMMC 4.5 devices. Also fixes the problem of omap_hsmmc
noisy/broken for suspend resume reported by Kevin Hilman.

Signed-off-by: default avatarGirish K S <girish.shivananjappa@linaro.org>
Acked-by: default avatarUlf Hansson <ulf.hansson@stericsson.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 6de5fc9c
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -883,10 +883,14 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
				 card->ext_csd.generic_cmd6_time);
		if (err && err != -EBADMSG)
			goto free_card;
	}

		/*
		 * The err can be -EBADMSG or 0,
		 * so check for success and update the flag
		 */
		if (!err)
			card->poweroff_notify_state = MMC_POWERED_ON;
	}

	/*
	 * Activate high speed (if supported)