From 823659f458637665ebb91bcf25fae22e4ab74d6b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 24 Aug 2014 15:57:49 +0000 Subject: bcm53xx: update bcma device tree intergeneration and fix nvram parsing This fixes lots of sparse and checkpatch errors and extends the documentation. This also fixes a problem in the nvram parser, it now detects the correct nvram on my Netgear R6250. Signed-off-by: Hauke Mehrtens SVN-Revision: 42272 --- .../bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'target/linux/bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch') diff --git a/target/linux/bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch b/target/linux/bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch index f81541fdf2..d9a831c923 100644 --- a/target/linux/bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch +++ b/target/linux/bcm53xx/patches-3.14/121-bcma-get-irqs-from-dt.patch @@ -1,10 +1,14 @@ -From 3e59da41882a408064cd23f4c9124a7938bdb91f Mon Sep 17 00:00:00 2001 +From eaf1943a2c49cbc6eb0ffafa7b6ced45f2d328da Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 9 Jan 2014 19:40:14 +0100 -Subject: [PATCH 06/15] bcma: get irqs from dt +Subject: [PATCH 05/17] bcma: get IRQ numbers from dt -If bcma was registered with device tree it will search for some nodes -with the irq number and add it to the core configuration. +It is not possible to auto detect the irq numbers used by the cores on +an arm SoC. If bcma was registered with device tree it will search for +some device tree nodes with the irq number and add it to the core +configuration. + +Signed-off-by: Hauke Mehrtens --- drivers/bcma/main.c | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) @@ -35,7 +39,7 @@ with the irq number and add it to the core configuration. + return NULL; + + for_each_child_of_node(parent->dev.of_node, node) { -+ reg = of_get_address(node, 0, &size, 0); ++ reg = of_get_address(node, 0, &size, NULL); + if (!reg) + continue; + if (be32_to_cpup(reg) == core->addr) -- cgit v1.2.3