Merged in david_s5/nuttx/upstream_kinetis (pull request #243)

Ensure interrups are back on BEFORE running code dependant on clock_systimer

Approved-by: Gregory Nutt
This commit is contained in:
David Sidrane 2017-03-08 22:24:28 +00:00 committed by Gregory Nutt
commit 45ccf0cb79

View File

@ -2916,6 +2916,8 @@ void sdhc_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
priv->cdstatus &= ~SDIO_STATUS_PRESENT;
}
leave_critical_section(flags);
mcinfo("cdstatus OLD: %02x NEW: %02x\n", cdstatus, priv->cdstatus);
/* Perform any requested callback if the status has changed */
@ -2924,8 +2926,6 @@ void sdhc_mediachange(FAR struct sdio_dev_s *dev, bool cardinslot)
{
kinetis_callback(priv);
}
leave_critical_section(flags);
}
/****************************************************************************