OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 From: Mathias Kresin <dev@kresin.me>
2 Subject: MIPS: PCI: add controllers before the specified head
3  
4 With commit 23dac14d058f ("MIPS: PCI: Use struct list_head lists") new
5 controllers are added after the specified head where they were added
6 before the specified head previously.
7  
8 Use list_add_tail to restore the former order.
9  
10 This patches fixes the following PCI error on lantiq:
11  
12 pci 0000:01:00.0: BAR 0: error updating (0x1c000004 != 0x000000)
13  
14 Fixes: 23dac14d058f ("MIPS: PCI: Use struct list_head lists")
15 Signed-off-by: Mathias Kresin <dev@kresin.me>
16 ---
17 arch/mips/pci/pci-legacy.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19  
20 --- a/arch/mips/pci/pci-legacy.c
21 +++ b/arch/mips/pci/pci-legacy.c
3 office 22 @@ -190,7 +190,7 @@ void register_pci_controller(struct pci_
1 office 23 }
24  
25 INIT_LIST_HEAD(&hose->list);
26 - list_add(&hose->list, &controllers);
27 + list_add_tail(&hose->list, &controllers);
28  
29 /*
30 * Do not panic here but later - this might happen before console init.