diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-12-29 23:09:32 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2017-12-29 23:15:32 +0100 |
commit | fea884ff51cc2ed1016b4e13a9fcc728bd4f357e (patch) | |
tree | 9c5020c0f6caba74d85f2a558da725f5dbc19ee3 /target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch | |
parent | 4dd51788dd2fad52dc328ea08ff118a42f6dfa54 (diff) | |
download | upstream-fea884ff51cc2ed1016b4e13a9fcc728bd4f357e.tar.gz upstream-fea884ff51cc2ed1016b4e13a9fcc728bd4f357e.tar.bz2 upstream-fea884ff51cc2ed1016b4e13a9fcc728bd4f357e.zip |
bcm53xx: add early support for kernel 4.14
Don't switch to it by default yet as it requires more testing.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch')
-rw-r--r-- | target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch b/target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch new file mode 100644 index 0000000000..8196afb015 --- /dev/null +++ b/target/linux/bcm53xx/patches-4.14/982-PCI-iproc-Disable-DMA-mapping-support.patch @@ -0,0 +1,29 @@ +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl> +Date: Fri, 29 Dec 2017 22:39:45 +0100 +Subject: [PATCH] PCI: iproc: Disable DMA mapping support +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This has been added in commit dd9d4e7498de3 ("PCI: iproc: Add inbound +DMA mapping support") which causes a crash for bcma case. Function +pci_dma_range_parser_init calls of_n_addr_cells with a NULL argument +which causes a NULL pointer dereference. + +Signed-off-by: Rafał Miłecki <rafal@milecki.pl> +--- + +--- a/drivers/pci/host/pcie-iproc.c ++++ b/drivers/pci/host/pcie-iproc.c +@@ -1396,9 +1396,11 @@ int iproc_pcie_setup(struct iproc_pcie * + } + } + ++if (0) { + ret = iproc_pcie_map_dma_ranges(pcie); + if (ret && ret != -ENOENT) + goto err_power_off_phy; ++} + + #ifdef CONFIG_ARM + pcie->sysdata.private_data = pcie; |