base-files: define yes/no as valid boolean options
[openwrt.git] / target / linux / mvebu / patches-3.10 / 0034-ARM-mvebu-fix-length-of-ethernet-registers-in-mv7826.patch
1 From 4f6da1286d2602e00c049c29eb9e816587c752a5 Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Sat, 22 Jun 2013 13:52:27 -0300
4 Subject: [PATCH 034/203] ARM: mvebu: fix length of ethernet registers in
5  mv78260 dtsi
6
7 The length of the registers area for the Marvell 370/XP Ethernet controller
8 was incorrect in the .dtsi: 0x2500, while it should have been 0x4000.
9 This problem wasn't noticed because there used to be a static mapping for
10 all the MMIO register region set up by ->map_io().
11
12 The register length was fixed in all the other device tree files,
13 except from the armada-xp-mv78260.dtsi, in the following commit:
14
15   commit cf8088c5cac6ce20d914b9131533844b9291a054
16   Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17   Date:   Tue May 21 12:33:27 2013 +0200
18
19     arm: mvebu: fix length of Ethernet registers area in .dtsi
20
21 This commit fixes a kernel panic in mvneta_probe(), when the kernel
22 tries to access the unmapped registers:
23
24 [  163.639092] mvneta d0070000.ethernet eth0: mac: 6e:3c:4f:87:17:2e
25 [  163.646962] mvneta d0074000.ethernet eth1: mac: 6a:04:4e:6f:f5:ef
26 [  163.654853] mvneta d0030000.ethernet eth2: mac: 2a:99:19:19:fc:4c
27 [  163.661258] Unable to handle kernel paging request at virtual address f011bcf0
28 [  163.668523] pgd = c0004000
29 [  163.671237] [f011bcf0] *pgd=2f006811, *pte=00000000, *ppte=00000000
30 [  163.677565] Internal error: Oops: 807 [#1] SMP ARM
31 [  163.682370] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.0-rc6-01850-gba0682e #11
32 [  163.690046] task: ef04c000 ti: ef03e000 task.ti: ef03e000
33 [  163.695467] PC is at mvneta_probe+0x34c/0xabc
34 [...]
35
36 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
37 Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 Signed-off-by: Jason Cooper <jason@lakedaemon.net>
39 ---
40  arch/arm/boot/dts/armada-xp-mv78260.dtsi | 2 +-
41  1 file changed, 1 insertion(+), 1 deletion(-)
42
43 --- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi
44 +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi
45 @@ -92,7 +92,7 @@
46  
47                         ethernet@34000 {
48                                 compatible = "marvell,armada-370-neta";
49 -                               reg = <0x34000 0x2500>;
50 +                               reg = <0x34000 0x4000>;
51                                 interrupts = <14>;
52                                 clocks = <&gateclk 1>;
53                                 status = "disabled";