af6f7ca2c629afafbb0c7d4698fa3c413e35a2dd
[openwrt/staging/chunkeey.git] / target / linux / rb532 / patches-3.10 / 003-MIPS-rc32434-fix-broken-pci-init.patch
1 From patchwork Thu May 15 08:35:44 2014
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: MIPS: RC32434: fix broken PCI resource initialization
6 From: Gabor Juhos <juhosg@openwrt.org>
7 X-Patchwork-Id: 6940
8 Message-Id: <1400142944-32147-1-git-send-email-juhosg@openwrt.org>
9 To: Ralf Baechle <ralf@linux-mips.org>
10 Cc: linux-mips@linux-mips.org, Gabor Juhos <juhosg@openwrt.org>
11 Date: Thu, 15 May 2014 10:35:44 +0200
12
13 The parent field of the 'rc32434_res_pci_mem1' resource points to
14 the resource itself which is obviously wrong. Due to the broken
15 initialitazion, the PCI devices on the Mikrotik RB532 boards are
16 not working since commit 22283178 (MIPS: avoid possible resource
17 conflict in register_pci_controller).
18
19 Remove the field initialization to fix the issue.
20
21 Reported-by: Waldemar Brodkorb <wbx@openadk.org>
22 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
23
24 ---
25 arch/mips/pci/pci-rc32434.c | 1 -
26 1 file changed, 1 deletion(-)
27
28 --- a/arch/mips/pci/pci-rc32434.c
29 +++ b/arch/mips/pci/pci-rc32434.c
30 @@ -53,7 +53,6 @@ static struct resource rc32434_res_pci_m
31 .start = 0x50000000,
32 .end = 0x5FFFFFFF,
33 .flags = IORESOURCE_MEM,
34 - .parent = &rc32434_res_pci_mem1,
35 .sibling = NULL,
36 .child = &rc32434_res_pci_mem2
37 };