forked from len0rd/rockbox
Hotswap: Avoid mount race at startup and after returning from USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6479 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f414fb1e22
commit
15d7077c3a
4 changed files with 44 additions and 20 deletions
|
@ -194,7 +194,13 @@ static void usb_slave_mode(bool on)
|
|||
panicf("ata: %d",rc);
|
||||
}
|
||||
|
||||
#if defined(HAVE_MMC) && defined(HAVE_HOTSWAP)
|
||||
mmc_enable_monitoring(false);
|
||||
rc = disk_mount_all();
|
||||
mmc_enable_monitoring(true);
|
||||
#else
|
||||
rc = disk_mount_all();
|
||||
#endif
|
||||
if (rc <= 0) /* no partition */
|
||||
panicf("mount: %d",rc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue