diff options
author | Mathias Kresin <dev@kresin.me> | 2017-03-25 12:18:56 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-04-08 14:30:00 +0200 |
commit | 136718a3d91bb392de8bc04d9fd59d86b4f460c0 (patch) | |
tree | ae53b82cae09b4b760ddb26aaa97a34cbfec0bff /target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch | |
parent | 813efe57e434037fb58bd3e16ebd3a1cfd6ceb82 (diff) | |
download | upstream-136718a3d91bb392de8bc04d9fd59d86b4f460c0.tar.gz upstream-136718a3d91bb392de8bc04d9fd59d86b4f460c0.tar.bz2 upstream-136718a3d91bb392de8bc04d9fd59d86b4f460c0.zip |
kernel: update MIPS pci fix to the accepted version
Fix the list order instead of adjusting the controller scan order.
Revert the former required changes to the lantiq PCIe driver.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch')
-rw-r--r-- | target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch b/target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch new file mode 100644 index 0000000000..b6db663fc2 --- /dev/null +++ b/target/linux/generic/patches-4.9/170-MIPS-PCI-add-controllers-before-the-specified-head.patch @@ -0,0 +1,31 @@ +From: Mathias Kresin <dev@kresin.me> +Date: Sun, 26 Mar 2017 19:05:36 +0200 +Subject: MIPS: PCI: add controllers before the specified head + +With commit 23dac14d058f ("MIPS: PCI: Use struct list_head lists") new +controllers are added after the specified head where they were added +before the specified head previously. + +Use list_add_tail to restore the former order. + +This patches fixes the following PCI error on lantiq: + + pci 0000:01:00.0: BAR 0: error updating (0x1c000004 != 0x000000) + +Fixes: 23dac14d058f ("MIPS: PCI: Use struct list_head lists") +Signed-off-by: Mathias Kresin <dev@kresin.me> +--- + arch/mips/pci/pci-legacy.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/mips/pci/pci-legacy.c ++++ b/arch/mips/pci/pci-legacy.c +@@ -190,7 +190,7 @@ void register_pci_controller(struct pci_ + } + + INIT_LIST_HEAD(&hose->list); +- list_add(&hose->list, &controllers); ++ list_add_tail(&hose->list, &controllers); + + /* + * Do not panic here but later - this might happen before console init. |