From: SangeethaRao <sangeetha....@lsi.com> Removed the power of 2 size restriction for PCIe inbound mapping in LSI PCIe driver
Signed-off-by: SangeethaRao <sangeetha....@lsi.com> --- arch/powerpc/sysdev/lsi_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/lsi_pci.c b/arch/powerpc/sysdev/lsi_pci.c index ca1506d..e9beadc 100644 --- a/arch/powerpc/sysdev/lsi_pci.c +++ b/arch/powerpc/sysdev/lsi_pci.c @@ -152,9 +152,8 @@ static int __init acp_parse_dma_ranges(struct pci_controller *hose, return -ENXIO; } - /* Check we are a power of 2 size and that base is a multiple of size*/ - if ((size & (size - 1)) != 0 || - (res->start & (size - 1)) != 0) { + /* Check that base is a multiple of size*/ + if ((res->start & (size - 1)) != 0) { pr_err("%s: dma-ranges unaligned\n", hose->dn->full_name); return -ENXIO; -- 1.7.9.5 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto