Commit dba5e3ac authored by Federico Vaga's avatar Federico Vaga

sw:drv:psi: return EBUSY when BUSY

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 18e0511d
...@@ -567,7 +567,7 @@ static bool spi_ocores_is_busy(struct spi_ocores *sp) ...@@ -567,7 +567,7 @@ static bool spi_ocores_is_busy(struct spi_ocores *sp)
static int spi_ocores_process(struct spi_ocores *sp) static int spi_ocores_process(struct spi_ocores *sp)
{ {
if (spi_ocores_is_busy(sp)) if (spi_ocores_is_busy(sp))
return -ENODATA; return -EBUSY;
spi_ocores_hw_xfer_rx_pop(sp); spi_ocores_hw_xfer_rx_pop(sp);
if (spi_ocores_sw_xfer_has_pending(sp)) { if (spi_ocores_sw_xfer_has_pending(sp)) {
......
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