diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-01-06 13:53:27 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2017-01-06 19:38:55 +0100 |
commit | 88ca6390eab24efda3f6333453cd645b5e20e400 (patch) | |
tree | aca0017be6abf1534934ec15cac1da4fd30c66f7 /target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch | |
parent | b9857b21c27c3ba98a400cd797c540baa9f40be1 (diff) | |
download | mtk-20170518-88ca6390eab24efda3f6333453cd645b5e20e400.zip mtk-20170518-88ca6390eab24efda3f6333453cd645b5e20e400.tar.gz mtk-20170518-88ca6390eab24efda3f6333453cd645b5e20e400.tar.bz2 |
kernel: bump to 4.4.40
Refresh patches on all 4.4 supported platforms.
Compile & run tested: lantiq/xrx200
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch')
-rw-r--r-- | target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch b/target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch index 08e1ecb..6162e2b 100644 --- a/target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch +++ b/target/linux/layerscape/patches-4.4/8237-pcie-ls208x-use-unified-compatible-fsl-ls2080a-pcie-.patch @@ -15,8 +15,6 @@ Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com> drivers/pci/host/pci-layerscape.c | 13 ++++++++----- 2 files changed, 12 insertions(+), 13 deletions(-) -diff --git a/arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi -index bd69942..07c917b 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls2088a.dtsi @@ -513,8 +513,7 @@ @@ -59,28 +57,26 @@ index bd69942..07c917b 100644 reg = <0x00 0x03700000 0x0 0x00100000 /* controller registers */ 0x38 0x00000000 0x0 0x00002000>; /* configuration space */ reg-names = "regs", "config"; -diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c -index 00feabf..3e2100d 100644 --- a/drivers/pci/host/pci-layerscape.c +++ b/drivers/pci/host/pci-layerscape.c -@@ -158,9 +158,14 @@ static void ls1021_pcie_host_init(struct pcie_port *pp) +@@ -158,9 +158,14 @@ static void ls1021_pcie_host_init(struct static int ls_pcie_link_up(struct pcie_port *pp) { struct ls_pcie *pcie = to_ls_pcie(pp); - u32 state; + u32 state, offset; -+ + +- state = (ioread32(pcie->lut + pcie->drvdata->lut_dbg) >> + if (of_get_property(pp->dev->of_node, "fsl,lut_diff", NULL)) + offset = 0x407fc; + else + offset = pcie->drvdata->lut_dbg; - -- state = (ioread32(pcie->lut + pcie->drvdata->lut_dbg) >> ++ + state = (ioread32(pcie->lut + offset) >> pcie->drvdata->ltssm_shift) & LTSSM_STATE_MASK; -@@ -261,7 +266,6 @@ static const struct of_device_id ls_pcie_of_match[] = { +@@ -261,7 +266,6 @@ static const struct of_device_id ls_pcie { .compatible = "fsl,ls1046a-pcie", .data = &ls1046_drvdata }, { .compatible = "fsl,ls1088a-pcie", .data = &ls1088_drvdata }, { .compatible = "fsl,ls2080a-pcie", .data = &ls2080_drvdata }, @@ -88,7 +84,7 @@ index 00feabf..3e2100d 100644 { }, }; MODULE_DEVICE_TABLE(of, ls_pcie_of_match); -@@ -315,8 +319,7 @@ static int __init ls_pcie_probe(struct platform_device *pdev) +@@ -315,8 +319,7 @@ static int __init ls_pcie_probe(struct p if (!ls_pcie_is_bridge(pcie)) return -ENODEV; @@ -98,6 +94,3 @@ index 00feabf..3e2100d 100644 of_device_is_compatible(pdev->dev.of_node, "fsl,ls1088a-pcie")) { int len; const u32 *prop; --- -1.7.9.5 - |