audk/EmbeddedPkg
oliviermartin 40842a5e7c EmbeddedPkg/MmcDxe: Card Presence Detect Race Condition
The MMC driver defaults to assume a card is not present.  It then starts a timer in MmcDxeInitialize to check for card presence every 200ms.

However it does not immediately check to see if a card is present so if the EFI driver connection process occurs less than 200ms after the driver load, the connection process for partition 
or filesystem drivers will fail because MediaPresent still is FALSE.  To resolve this race condition, we need to immediately perform the presence check in the Start routine.


EmbeddedPkg/MmcDxe: Media ID Handling

Initialize the MMC device on Start or when presence changes instead of doing it on the Block IO calls. This way the layered drivers can be stopped and rebuilt with new Media IDs instead of 
experiencing errors on calls to Block IO.


Proposed-by: Eugene Cohen (HP)
Reviewed-by: oliviermartin




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12237 6f19259b-4bc3-4df7-8a09-765794883524
2011-08-30 18:02:38 +00:00
..
Ebl EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
EblExternCmd EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
EmbeddedMonotonicCounter EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
GdbStub Update the copyright notice format 2010-04-29 12:40:51 +00:00
Include EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
Library EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
MetronomeDxe EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
RealTimeClockRuntimeDxe Update the copyright notice format 2010-04-29 12:40:51 +00:00
ResetRuntimeDxe Update the copyright notice format 2010-04-29 12:40:51 +00:00
Scripts/LauterbachT32 EmbeddedPkg/LauterbachT32: Lauterbach T32 Debug Scripts 2011-04-27 17:21:31 +00:00
SerialDxe EmbeddedPkg: Fix mispellings 2011-08-08 18:29:14 +00:00
SimpleTextInOutSerial EmbeddedPkg/SerialDxe: Fix SIMPLE_TEXT_OUT_DEVICE_PATH Device Path 2011-06-03 09:12:55 +00:00
TemplateSec Update the copyright notice format 2010-04-29 12:40:51 +00:00
Universal/MmcDxe EmbeddedPkg/MmcDxe: Card Presence Detect Race Condition 2011-08-30 18:02:38 +00:00
EmbeddedPkg.dec EmbeddedPkg: Removed unused PCD values 2011-07-01 14:41:25 +00:00
EmbeddedPkg.dsc EmbeddedPkg: Move Universal/MmcDxe from ArmPkg to EmbeddedPkg 2011-06-03 09:07:31 +00:00
EmbeddedPkg.fdf Update the copyright notice format 2010-04-29 12:40:51 +00:00