[linux-yocto] [PATCH 34/39] LSI powerpc/sysdev: Removing the power of 2 size restriction
Charlie Paul
cpaul.windriver at gmail.com
Fri Apr 11 14:13:35 PDT 2014
From: SangeethaRao <sangeetha.rao at lsi.com>
Removed the power of 2 size restriction for PCIe inbound
mapping in LSI PCIe driver
Signed-off-by: SangeethaRao <sangeetha.rao at 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
More information about the linux-yocto
mailing list