busdma: Fix powerpc DMA alignment check
The original logic was to check if there's no filter and the address is
misaligned relative to the requirements. The refactoring in
c606ab59e7
missed this, and instead caused
it to return failure if the address *is* properly aligned.
This commit is contained in:
parent
ad07e93fe1
commit
3a9688f8bc
@ -172,7 +172,7 @@ run_filter(bus_dma_tag_t dmat, bus_addr_t paddr)
|
||||
paddr > dmat->lowaddr && paddr <= dmat->highaddr)
|
||||
retval = 1;
|
||||
if (dmat->filter == NULL &&
|
||||
vm_addr_align_ok(paddr, dmat->alignment))
|
||||
!vm_addr_align_ok(paddr, dmat->alignment))
|
||||
retval = 1;
|
||||
if (dmat->filter != NULL &&
|
||||
(*dmat->filter)(dmat->filterarg, paddr) != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user