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

Commit dd6c4b98 authored by Will Newton's avatar Will Newton Committed by Chris Ball
Browse files

mmc: dw_mmc: Run card detect tasklet during slot initialisation.



We need to run the card detect tasklet at the end of slot initialisation
as it is possible that a card has been inserted prior to boot, so we don't
see an insertion interrupt and now the card is sitting there inserted but
with no power to it.

Signed-off-by: default avatarNeil Jones <neil.jones@imgtec.com>
Signed-off-by: default avatarWill Newton <will.newton@imgtec.com>
Reviewed-by: default avatarMatt Fleming <matt@console-pimps.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 170cba8c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1441,6 +1441,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
	/* Card initially undetected */
	slot->last_detect_state = 0;

	/*
	 * Card may have been plugged in prior to boot so we
	 * need to run the detect tasklet
	 */
	tasklet_schedule(&host->card_tasklet);

	return 0;
}