Closed pietrushnic closed 9 years ago
@rossoldfield please review. Especially letm me know if commit message is ok for you.
Unsure about line 114: if (readl(mbox->regs + MAIL0_STA) & ARM_MS_FULL) { rmb(); /* Finished last mailbox read. */ ret = -EBUSY;
I don't think this can ever be true because the FIFO is 8 entries deep and we only process a single 32-bit value per transaction.
Previous code tried to verify if VPU->ARM (MAIL0) receiving queue is empty after submitting message to ARM->VPU (MAIL1) queue. This patch change mailbox used in last_tx_done to MAIL1.
Based on IRC advice from Ross Oldfield.
Signed-off-by: Piotr Król piotr.krol@3mdeb.com