summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cesar/hal/phy/src/bridgedma.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cesar/hal/phy/src/bridgedma.c b/cesar/hal/phy/src/bridgedma.c
index ffb8040919..95de4fc6c3 100644
--- a/cesar/hal/phy/src/bridgedma.c
+++ b/cesar/hal/phy/src/bridgedma.c
@@ -187,11 +187,10 @@ phy_bridgedma_start (phy_bridgedma_t *ctx, phy_bridgedma_job_t *job_first,
arch_write_buffer_flush ();
/* if last_job is loaded before last has been written. */
- if (((PHY_BDGDMA_CURRENT_JOBD_PTR & ~3)
- == (u32) ctx->bridge.job_tail
+ if ((PHY_BDGDMA_CURRENT_JOBD_PTR == (u32) ctx->bridge.job_tail
&& PHY_BRGDMA_LAST_BIT)
|| (!_phy_bridgedma_status ()
- && (PHY_BDGDMA_CURRENT_JOBD_PTR & ~3) == (u32) job_first))
+ && PHY_BDGDMA_CURRENT_JOBD_PTR == (u32) job_first))
phy_bridge_dma_start__configure (ctx, job_first);
}
ctx->bridge.job_tail = job_last;