mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
parisc: Fix PCI resource allocation on non-PAT SBA machines
We weren't marking the resources as memory resources, so they weren't being found by pci_claim_resource(). Signed-off-by: Matthew Wilcox <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Signed-off-by: Kyle McMartin <[email protected]>
This commit is contained in:
parent
2d4618dce6
commit
ca0844e347
1 changed files with 2 additions and 0 deletions
|
|
@ -2057,6 +2057,7 @@ void sba_directed_lmmio(struct parisc_device *pci_hba, struct resource *r)
|
|||
r->start = (base & ~1UL) | PCI_F_EXTEND;
|
||||
size = ~ READ_REG32(reg + LMMIO_DIRECT0_MASK);
|
||||
r->end = r->start + size;
|
||||
r->flags = IORESOURCE_MEM;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2093,4 +2094,5 @@ void sba_distributed_lmmio(struct parisc_device *pci_hba, struct resource *r )
|
|||
size = (~READ_REG32(sba->sba_hpa + LMMIO_DIST_MASK)) / ROPES_PER_IOC;
|
||||
r->start += rope * (size + 1); /* adjust base for this rope */
|
||||
r->end = r->start + size;
|
||||
r->flags = IORESOURCE_MEM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue