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 c606ab59e7f9423f7027320e9a4514c7db39658d 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…
x
Reference in New Issue
Block a user