MLK-16765-2 soc: imx: sc: ipc: add 'group' into notificaiton
authorRobin Gong <yibin.gong@nxp.com>
Tue, 7 Nov 2017 09:04:23 +0000 (17:04 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:46:58 +0000 (15:46 -0500)
commitb16daa9c40de7110dc6ae1b010b1270fd2590632
treec2d0d9fea0fbfce36c10dc0e37f2d9bb8bed900b
parentb6b631e6382c3eee7622f301774ea062ff35c125
MLK-16765-2 soc: imx: sc: ipc: add 'group' into notificaiton

Add one more 'group' parameter to notification so that rtc/temperature
driver can check if this MU interrupt is for themselves or not. Worst
case as before, different irq group with the same irq_status can't be
distinguished, such as 'SC_IRQ_BUTTON' and 'SC_IRQ_RTC'(all is 1), which
means both notification will be called once any of both interrupts
triggered. Besides, refine check irq_status code.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
drivers/soc/imx/sc/main/ipc.c