CPDMA_STATE_IDLE
chan->state = CPDMA_STATE_IDLE;
if (chan->state != CPDMA_STATE_IDLE) {
ctlr->state = CPDMA_STATE_IDLE;
if (ctlr->state != CPDMA_STATE_IDLE) {
ctlr->state = CPDMA_STATE_IDLE;
if (ctlr->state != CPDMA_STATE_IDLE)
chan->state = CPDMA_STATE_IDLE;
if (chan->state != CPDMA_STATE_IDLE)