Commit 518db8a
committed
shared/filesystem: mount SD at filesystem_init for reliable MSC probe
The lazy automount in tud_msc_test_unit_ready_cb can lose races with
macOS's USB MSC probe timing -- the host asks whether LUN 1 is ready
before the card has finished mounting, sees NOT_READY, and may give up
before trying again. Mounting during filesystem_init ensures the SD
card is live by the time USB enumerates, so the first probe succeeds.
Affects boards that define DEFAULT_SD_CARD_DETECT; behavior on boards
without an auto-mount path is unchanged.1 parent 26f70c1 commit 518db8a
1 file changed
Lines changed: 6 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
| |||
0 commit comments