Browse Source

[DeviceDrivers] Fix missing mailbox after SDCard hot plug

tanek liang 7 years ago
parent
commit
d8bc33d70b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/drivers/sdio/mmcsd_core.c

+ 1 - 0
components/drivers/sdio/mmcsd_core.c

@@ -655,6 +655,7 @@ void mmcsd_detect(void *param)
                     if (init_sd(host, ocr))
                         mmcsd_power_off(host);
                     mmcsd_host_unlock(host);
+                    rt_mb_send(&mmcsd_hotpluge_mb, (rt_uint32_t)host);
                     continue;
                 }