SPRUIU1C July 2020 – February 2024 DRA821U , DRA821U-Q1
Figure 12-2254 and Table 12-4341 show a task discard and clear sequence.
Step | Description |
---|---|
1 | While CQE is enabled write '1' to MMCSD0_CQ_CONTROL[0] HALT_BIT bit to halt CQE. |
2 | Poll on MMCSD0_CQ_INTR_STS[0] HALT_COMPLETE bit. |
3 | Read MMCSD0_CQ_TASK_DOOR_BELL register to determine if the task to be dicarded is set to 1. |
4 | Read MMCSD0_CQ_DEV_PENDING_TASKS register to check if the task is queued in the device. |
5 | Send CMDQ_TASK_MGMT(CMD48) to discard task using the task id as the argument. |
6 | Write '1' to CQCTCLR[i] to clear task in CQE. |
7 | Poll on CQCTCLR[i] until it is '0'. |
8 | Write '0' to MMCSD0_CQ_CONTROL register to resume CQE. |