common/octeontx2: add polling based response mbox message
authorSunil Kumar Kori <skori@marvell.com>
Tue, 14 Jan 2020 09:04:53 +0000 (14:34 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 6 Feb 2020 15:35:40 +0000 (16:35 +0100)
commitf1ae60d696cb92d6529f37630e1f08defa4a80e3
tree1f487a25e93c6536b34f4db319b80f75da4fa674
parent9058afaa26f7f39c179fbfeb3c6ce5929890f322
common/octeontx2: add polling based response mbox message

Currently otx2_mbox_get_rsp_xxx get response once AF driver
interrupts after completion. But this function will get into
deadlock if called in another interrupt context.

To avoid it, implemented another version of this function which polls
on dedicated memory for a given timeout.

Also after clearing interrupt, there could UP messages available for
processing. So irq handler must check mbox messages.

Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/octeontx2/Makefile
drivers/common/octeontx2/meson.build
drivers/common/octeontx2/otx2_dev.c
drivers/common/octeontx2/otx2_mbox.c
drivers/common/octeontx2/otx2_mbox.h