Home
last modified time | relevance | path

Searched hist:d9adcc12860d76cf3401c6ab7c0406b15b356b7a (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/mmc/core/
H A Dhost.cdiff d9adcc12860d76cf3401c6ab7c0406b15b356b7a Thu Jun 14 10:17:39 CEST 2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> mmc: prohibit card detection when host is not ready

Currently mmc host drivers have to decide whether to enable card
detection before calling mmc_add_host() -- in which case a card
insertion event can arrive before the host has been completely
initialised -- or after mmc_add_host(), in which case the initial
card detection can be problematic.

This patch adds an explicit indication of when card detection should
not be carried out. With it in place enabling card detection before
calling mmc_add_host() should be safe. Similarly, disabling it again
after calling mmc_remove_host() will avoid any races.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
H A Dcore.cdiff d9adcc12860d76cf3401c6ab7c0406b15b356b7a Thu Jun 14 10:17:39 CEST 2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> mmc: prohibit card detection when host is not ready

Currently mmc host drivers have to decide whether to enable card
detection before calling mmc_add_host() -- in which case a card
insertion event can arrive before the host has been completely
initialised -- or after mmc_add_host(), in which case the initial
card detection can be problematic.

This patch adds an explicit indication of when card detection should
not be carried out. With it in place enabling card detection before
calling mmc_add_host() should be safe. Similarly, disabling it again
after calling mmc_remove_host() will avoid any races.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>