]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: PCI: add controllers before the specified head
authorMathias Kresin <dev@kresin.me>
Sun, 26 Mar 2017 17:05:36 +0000 (19:05 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 12 Apr 2017 22:51:20 +0000 (00:51 +0200)
commit3eb9876215055a7e3c2ae17f0b60442c8527a765
tree9cb2978cd8aa5010930eca6b5ffe37343c9d328d
parent2a911a4f5052d36b95170d4c22c1a88fbf0fc8f0
MIPS: PCI: add controllers before the specified head

With commit 1578fffc5e17 ("MIPS: PCI: Use struct list_head lists") new
controllers are added after the specified head where they where 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: 1578fffc5e17 ("MIPS: PCI: Use struct list_head lists")
Signed-off-by: Mathias Kresin <dev@kresin.me>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15808/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/pci-legacy.c