SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Figure 12-1789 and Table 12-3437 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. |