summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-20 19:31:20 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-04-20 19:31:20 +0900
commitd556fcc101c4b0d57ac9742ab806a6bfed78eac1 (patch)
tree6989826c3605e9cba0e12a328b7439c48b7d8519 /arch/sh/drivers/pci
parentbb3396477bf46c7cae6bd04b969580277957966e (diff)
downloadtalos-op-linux-d556fcc101c4b0d57ac9742ab806a6bfed78eac1.tar.gz
talos-op-linux-d556fcc101c4b0d57ac9742ab806a6bfed78eac1.zip
sh: pci: Flag the dreamcast BBA as IORESOURCE_PCI_FIXED.
This isn't a real BAR, so prevent any attempts to move it, as we don't wish to encourage a bus luck by overzealous PCI initialization code. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci')
-rw-r--r--arch/sh/drivers/pci/fixups-dreamcast.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/fixups-dreamcast.c b/arch/sh/drivers/pci/fixups-dreamcast.c
index 2bf85cf091e1..48c6381fffaa 100644
--- a/arch/sh/drivers/pci/fixups-dreamcast.c
+++ b/arch/sh/drivers/pci/fixups-dreamcast.c
@@ -41,6 +41,13 @@ static void __init gapspci_fixup_resources(struct pci_dev *dev)
*/
dev->resource[1].start = p->io_resource->start + 0x100;
dev->resource[1].end = dev->resource[1].start + 0x200 - 1;
+
+ /*
+ * This is not a normal BAR, prevent any attempts to move
+ * the BAR, as this will result in a bus lock.
+ */
+ dev->resource[1].flags |= IORESOURCE_PCI_FIXED;
+
/*
* Redirect dma memory allocations to special memory window.
*/
OpenPOWER on IntegriCloud