dwc: re-rewrite barrier part
authorEmmanuel Vadot <manu@FreeBSD.org>
Thu, 12 Oct 2023 18:54:52 +0000 (20:54 +0200)
committerEmmanuel Vadot <manu@FreeBSD.org>
Thu, 12 Oct 2023 18:56:16 +0000 (20:56 +0200)
commit43cd6bbba053f02999d846ef297655ebec2d218b
treeee58432c3293a65b81c64a390ef2a6102aaaeb5b
parent944223076fbcb681a8eb3e118ddafab79b21ac3d
dwc: re-rewrite barrier part

We need the DMA engine to have everything coherent *before* we
set the OWN bit (the bit that tells the DMA engine that it owns
the descriptor).

Fixes: 487034648805 ("dwc: Rewrite barrier part")

Reported by: jhb
sys/dev/dwc/dwc1000_dma.c