From d09b52b8982db63525c67bf36506ce8a813f84d0 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 5 Oct 2014 09:19:04 +1100 Subject: ipmi/bt: Rework iBT register access The bits in the control register are mostly write-1-to-clear, so the rmw sequences in bt_setmask() and bt_clearmask() don't work. Additionally, H_BUSY is weird as it's a write-1-to-toggle, so let's write a "safe" function that sets it to the desired state based on its previous state. (We can optimize that further later). Also enable interrupt operations. Signed-off-by: Benjamin Herrenschmidt --- platforms/bmc/palmetto.c | 1 + 1 file changed, 1 insertion(+) (limited to 'platforms') diff --git a/platforms/bmc/palmetto.c b/platforms/bmc/palmetto.c index 5d28b86..ac6c4d9 100644 --- a/platforms/bmc/palmetto.c +++ b/platforms/bmc/palmetto.c @@ -40,6 +40,7 @@ static void palmetto_ext_irq(unsigned int chip_id __unused) { uart_irq(); + bt_irq(); } static void palmetto_init(void) -- cgit v1.1