Skip to content

Commit edb0b6a

Browse files
mkresinralfbaechle
authored andcommitted
MIPS: PCI: add controllers before the specified head
With commit 23dac14 ("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: 23dac14 ("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>
1 parent 162b270 commit edb0b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/pci/pci-legacy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void register_pci_controller(struct pci_controller *hose)
190190
}
191191

192192
INIT_LIST_HEAD(&hose->list);
193-
list_add(&hose->list, &controllers);
193+
list_add_tail(&hose->list, &controllers);
194194

195195
/*
196196
* Do not panic here but later - this might happen before console init.

0 commit comments

Comments
 (0)