Commit 1e5c102c authored by Alex Williamson's avatar Alex Williamson Committed by Russell King

[PATCH] 8250_pci include offset in iomap_base

   This one-liner is required for PCI serial ports that have multiple
MMIO ports off a single PCI BAR.  Calls to request_mem_resource() fail
after the first one otherwise.  Patch against 2.5.67.  Thanks,
parent a0e259f3
...@@ -127,7 +127,7 @@ setup_port(struct pci_dev *dev, struct serial_struct *req, ...@@ -127,7 +127,7 @@ setup_port(struct pci_dev *dev, struct serial_struct *req,
return -ENOMEM; return -ENOMEM;
req->io_type = UPIO_MEM; req->io_type = UPIO_MEM;
req->iomap_base = port; req->iomap_base = port + offset;
req->iomem_base = priv->remapped_bar[bar] + offset; req->iomem_base = priv->remapped_bar[bar] + offset;
req->iomem_reg_shift = regshift; req->iomem_reg_shift = regshift;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment