mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 29 Aug 2019 01:48:10 +0000 (09:48 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 17 Sep 2019 05:40:05 +0000 (00:40 -0500)
commit2c49e4e846bf365e8e683e3229d240f70eef65fc
treec1ef63437bac55a6599a6961c8fdd19b98e0ac79
parent2d645217f1982190a54b2b0cb5f5ca42ec4d165e
mailbox: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data

The interrupt mask and thread number has positive correlation,
so we move the CMDQ_IRQ_MASK into cmdq driver data and calculate
it by thread number.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c