forked from len0rd/rockbox
Do some crackdown on kernel object reinitialization after they could be in use and use before initialization. For c200/e200: Be sure fat cache and ata locks are acquired in the proper order during hot swapping. Delay hotswap monitoring until after initial file mounting (address 2nd kobj concern + possible call of fat driver before init).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16636 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2f5a37de5c
commit
06a5299aff
7 changed files with 73 additions and 29 deletions
|
|
@ -104,7 +104,7 @@ int disk_mount_all(void)
|
|||
int mounted;
|
||||
int i;
|
||||
|
||||
#ifdef HAVE_MMC
|
||||
#if defined(HAVE_MMC) || defined(HAVE_HOTSWAP)
|
||||
card_enable_monitoring(false);
|
||||
#endif
|
||||
|
||||
|
|
@ -118,9 +118,8 @@ int disk_mount_all(void)
|
|||
{
|
||||
mounted += disk_mount(1); /* try 2nd "drive", too */
|
||||
}
|
||||
#ifdef HAVE_MMC
|
||||
|
||||
card_enable_monitoring(true);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return mounted;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue