linux/drivers/mailbox
Wolfram Sang a4d4bbb160 mailbox: mailbox-test: make data_ready a per-instance variable
[ Upstream commit 6e937f4e76 ]

While not the default case, multiple tests can be run simultaneously.
Then, data_ready being a global variable will be overwritten and the
per-instance lock will not help. Turn the global variable into a
per-instance one to avoid this problem.

Fixes: e339c80af9 ("mailbox: mailbox-test: don't rely on rx_buffer content to signal data ready")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-06-01 17:35:41 +02:00
..
arm_mhu.c mailbox: arm_mhu: Remove redundant error printing in mhu_probe() 2021-06-26 11:37:48 -05:00
arm_mhu_db.c mailbox: arm_mhu_db: Remove redundant dev_err call in mhu_db_probe() 2021-04-13 20:07:36 -05:00
arm_mhuv2.c mailbox: arm_mhuv2: clean up loop in get_irq_chan_comb() 2024-12-14 19:51:04 +01:00
armada-37xx-rwtm-mailbox.c treewide: change my e-mail address, fix my name 2021-04-09 14:54:23 -07:00
bcm-flexrm-mailbox.c mailbox: bcm-ferxrm-mailbox: Use default primary handler 2026-03-04 07:20:00 -05:00
bcm-pdc-mailbox.c mailbox: bcm-pdc: Remove redundant error printing in pdc_probe() 2021-06-26 11:37:50 -05:00
bcm2835-mailbox.c mailbox: bcm2835: Fix timeout during suspend mode 2024-10-17 15:11:19 +02:00
hi3660-mailbox.c mailbox: hisilicon: Use the correct HiSilicon copyright 2021-06-26 11:38:02 -05:00
hi6220-mailbox.c mailbox: hisilicon: Use the correct HiSilicon copyright 2021-06-26 11:38:02 -05:00
imx-mailbox.c mailbox: imx: fix wakeup failure from freeze mode 2022-04-08 14:24:10 +02:00
Kconfig mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module 2021-08-29 23:50:15 -05:00
mailbox-altera.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
mailbox-mpfs.c mailbox: mpfs: switch to txdone_poll 2023-05-11 23:00:23 +09:00
mailbox-sti.c mailbox: sti: quieten kernel-doc warnings 2021-08-29 23:50:12 -05:00
mailbox-test.c mailbox: mailbox-test: make data_ready a per-instance variable 2026-06-01 17:35:41 +02:00
mailbox-xgene-slimpro.c mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
mailbox.c mailbox: add sanity check for channel array 2026-06-01 17:35:40 +02:00
mailbox.h mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
Makefile mbox: add polarfire soc system controller mailbox 2021-06-26 12:06:48 -05:00
mtk-cmdq-mailbox.c mailbox: fix gce_num of mt8192 driver data 2022-01-27 11:04:21 +01:00
omap-mailbox.c mailbox: omap: Add support for K3 AM64x SoCs 2021-02-14 23:23:41 -06:00
pcc.c mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
pl320-ipc.c mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
platform_mhu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: Add compatible for MSM8953 SoC 2021-08-30 00:29:29 -05:00
qcom-ipcc.c mailbox: qcom-ipcc: Enable loading QCOM_IPCC as a module 2021-08-29 23:50:15 -05:00
rockchip-mailbox.c mailbox: rockchip: fix a typo in module autoloading 2024-10-17 15:11:19 +02:00
sprd-mailbox.c mailbox: sprd: clear delivery flag before handling TX done 2026-03-04 07:20:14 -05:00
stm32-ipcc.c mailbox: stm32-ipcc: cast void pointers to unsigned long 2020-12-01 19:17:20 -06:00
sun6i-msgbox.c mailbox: sun6i-msgbox: Add a new mailbox driver 2020-03-19 23:00:32 -05:00
tegra-hsp.c mailbox: tegra-hsp: Flush whole channel 2022-04-08 14:22:59 +02:00
ti-msgmgr.c mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0 2023-07-23 13:47:28 +02:00
zynqmp-ipi-mailbox.c mailbox: zynqmp-ipi: Remove dev.parent check in zynqmp_ipi_free_mboxes 2025-10-19 16:21:42 +02:00