Commit e02bbfc4 authored by Federico Vaga's avatar Federico Vaga

sw:drv:spi: explain why we decrement cur_len on rx_pop

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent 65a6b915
......@@ -366,6 +366,10 @@ static void spi_ocores_hw_xfer_rx_pop(struct spi_ocores *sp)
else if (nbits >= 128)
* When we read is because a complete HW transfer is over, so we
* can safely decrease the counter of pending bytes
sp->cur_len -= (nbits / 8); /* FIXME not working for !pow2 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment