aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-12 15:44:33 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-12 16:41:25 +1100
commit0859f799583daa5fac57ab3f9a1175aae4de3252 (patch)
treeae5f70cd26f3ecd13e9b44003be1ae2375797260 /core
parenteec6e53ff88c0cb82f3624642390793cc0f8e3ce (diff)
downloadskiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.zip
skiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.tar.gz
skiboot-0859f799583daa5fac57ab3f9a1175aae4de3252.tar.bz2
i2c: Use new timer facility and improve interrupts handling
We only poll the masters for the chip that got the interrupt and we improve the running of the timers as well. We user the new TIMER_POLL facility to replace the use of the OPAL poller, which simplifies the code further. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'core')
-rw-r--r--core/chip.c1
-rw-r--r--core/i2c.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/chip.c b/core/chip.c
index e6eb81c..272f024 100644
--- a/core/chip.c
+++ b/core/chip.c
@@ -81,5 +81,6 @@ void init_chips(void)
0xffffffff);
chip->pcid = dt_prop_get_u32_def(xn, "ibm,proc-chip-id",
0xffffffff);
+ list_head_init(&chip->i2cms);
};
}
diff --git a/core/i2c.c b/core/i2c.c
index 2eb77db..e0af9b2 100644
--- a/core/i2c.c
+++ b/core/i2c.c
@@ -20,7 +20,7 @@
#include <device.h>
#include <opal-msg.h>
-LIST_HEAD(i2c_bus_list);
+static LIST_HEAD(i2c_bus_list);
/* Used to assign OPAL IDs */
static uint32_t i2c_next_bus;