mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
arch/risc-v/src/mpfs/mpfs_emmcsd: ignore WRCOMPLETE
As emmcsd driver does not support separate WRCOMPLETE interrupt the SDIOWAIT_WRCOMPLETE event shall not be waited. The SDIOWAIT_TRANSFERDONE event indicates that both "transfer done" and "write complete" events are completed.
This commit is contained in:
@@ -2769,6 +2769,17 @@ static sdio_eventset_t mpfs_eventwait(struct sdio_dev_s *dev)
|
|||||||
sdio_eventset_t wkupevent = 0;
|
sdio_eventset_t wkupevent = 0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
#if defined(CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE)
|
||||||
|
if ((priv->waitevents & SDIOWAIT_WRCOMPLETE) != 0)
|
||||||
|
{
|
||||||
|
/* Do not wait for SDIOWAIT_WRCOMPLETE as the SDIOWAIT_TRANSFERDONE
|
||||||
|
* event has already taken care of that part also.
|
||||||
|
*/
|
||||||
|
|
||||||
|
return SDIOWAIT_WRCOMPLETE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
mcinfo("wait\n");
|
mcinfo("wait\n");
|
||||||
|
|
||||||
/* There is a race condition here... the event may have completed before
|
/* There is a race condition here... the event may have completed before
|
||||||
|
|||||||
Reference in New Issue
Block a user