acrn-kernel/drivers/mailbox
Conor Dooley 37e3430176 mailbox: mpfs: check the service status in .tx_done()
Services are supposed to generate an interrupt once completed, whether
or not they have do so successfully. What appears to be a bug in the
system controller means that interrupts are only generated for
*successful* services.

Currently, the status of a service is only checked in the
mpfs_mbox_rx_data() once an interrupt is received. As it turns out, this
is not really helpful where the potentially buggy behaviour is present,
as we'll only see the status for successes where it is moot anyway.

Jassi suggested moving the check to the .tx_done() callback instead.
This makes sense, as the busy bit that tx_done() is polling will be
lowered on completion, regardless of whether the service passed or
failed.
That allows us to check the status bits for all services, whether they
generate an interrupt or not & pass something more informative than
-EBADMSG back to the drivers implementing individual services.

Suggested-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Tested-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
2023-04-03 19:26:04 +01:00
..
Kconfig - qcom: enable sc8280xp, sm8550 and sm4250 support 2022-12-21 09:31:18 -08:00
Makefile
apple-mailbox.c mailbox: apple: Implement poll_data() operation 2022-09-15 13:14:01 -05:00
arm_mhu.c
arm_mhu_db.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
arm_mhuv2.c mailbox: arm_mhuv2: Fix return value check in mhuv2_probe() 2022-12-18 20:40:30 -06:00
armada-37xx-rwtm-mailbox.c
bcm-flexrm-mailbox.c mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg 2022-10-05 21:50:53 -05:00
bcm-pdc-mailbox.c
bcm2835-mailbox.c
hi3660-mailbox.c
hi6220-mailbox.c
imx-mailbox.c mailbox: imx: fix RST channel support 2022-10-05 21:46:36 -05:00
mailbox-altera.c
mailbox-mpfs.c mailbox: mpfs: check the service status in .tx_done() 2023-04-03 19:26:04 +01:00
mailbox-sti.c
mailbox-test.c
mailbox-xgene-slimpro.c
mailbox.c mailbox: forward the hrtimer if not queued and under a lock 2022-05-23 14:45:24 -05:00
mailbox.h
mtk-adsp-mailbox.c mailbox: mediatek: support mt8186 adsp mailbox 2022-05-21 11:41:30 -05:00
mtk-cmdq-mailbox.c mailbox: mtk-cmdq: Do not request irq until we are ready 2022-12-18 20:40:31 -06:00
omap-mailbox.c mailbox: omap: using pm_runtime_resume_and_get to simplify the code 2022-05-21 11:41:30 -05:00
pcc.c mailbox: pcc: Reset pcc_chan_count to zero in case of PCC probe failure 2022-11-23 19:06:56 +01:00
pl320-ipc.c
platform_mhu.c
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: add IPQ5332 APSS clock support 2023-02-23 14:47:13 -06:00
qcom-ipcc.c mailbox: qcom-ipcc: flag IRQ NO_THREAD 2022-10-05 21:51:58 -05:00
rockchip-mailbox.c mailbox: rockchip: Use device_get_match_data() to simplify the code 2022-12-18 20:40:29 -06:00
sprd-mailbox.c
stm32-ipcc.c
sun6i-msgbox.c
tegra-hsp.c
ti-msgmgr.c
zynqmp-ipi-mailbox.c mailbox: zynq: Switch to flexible array to simplify code 2023-02-23 14:47:12 -06:00