diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2020-03-22 08:21:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-23 11:41:02 +0100 |
commit | 4bc0659d711294096efdb15880e3a1a8589c335a (patch) | |
tree | 9baded082f50b93c39324198d4df0502fb9d6af0 | |
parent | 30c826bf1df5583a1a36821c825792f62ba81cb1 (diff) |
staging: mt7621-pci: avoid to set 'iomem_resource' addresses
Setting up kernel resource 'iomem_resource' for PCI with
addresses parsed from device tree gots into a conflict within
the usb xhci driver:
xhci-mtk 1e1c0000.xhci: can't request region for resource [mem 0x1e1c0000-0x1e1c0fff]
xhci-mtk: probe of 1e1c0000.xhci failed with error -16
Don't assign it and maintain the default addresses for this
resource seems to fix the problem. Checking legacy driver it
is being only setting the 'ioport_resource'.
Fixes: 09dd629eeabb ("staging: mt7621-pci: fix io space and properly set resource limits")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20200322072128.4454-1-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/mt7621-pci/pci-mt7621.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index b8065b777ff6..f58e3a51fc71 100644 --- a/drivers/staging/mt7621-pci/pci-mt7621.c +++ b/drivers/staging/mt7621-pci/pci-mt7621.c @@ -679,8 +679,6 @@ static int mt7621_pci_probe(struct platform_device *pdev) } /* set resources limits */ - iomem_resource.start = pcie->mem.start; - iomem_resource.end = pcie->mem.end; ioport_resource.start = pcie->io.start; ioport_resource.end = pcie->io.end; |