Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca0844e3 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Kyle McMartin
Browse files

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: default avatarMatthew Wilcox <willy@linux.intel.com>
Reviewed-by: default avatarGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 2d4618dc
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2057,6 +2057,7 @@ void sba_directed_lmmio(struct parisc_device *pci_hba, struct resource *r)
		r->start = (base & ~1UL) | PCI_F_EXTEND;
		r->start = (base & ~1UL) | PCI_F_EXTEND;
		size = ~ READ_REG32(reg + LMMIO_DIRECT0_MASK);
		size = ~ READ_REG32(reg + LMMIO_DIRECT0_MASK);
		r->end = r->start + size;
		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;
	size = (~READ_REG32(sba->sba_hpa + LMMIO_DIST_MASK)) / ROPES_PER_IOC;
	r->start += rope * (size + 1);	/* adjust base for this rope */
	r->start += rope * (size + 1);	/* adjust base for this rope */
	r->end = r->start + size;
	r->end = r->start + size;
	r->flags = IORESOURCE_MEM;
}
}