SPRUJ28E November 2021 – September 2024 AM68 , AM68A , TDA4AL-Q1 , TDA4VE-Q1 , TDA4VL-Q1
Figure 12-156 and Table 12-230 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. |