linux-stable/drivers/mailbox
Alexey Klimov 4605fff00b mailbox: check ->last_tx_done for NULL in case of timer-based polling
It is allowed by code to register mailbox controller that sets txdone_poll
flag to request timer-based polling with missed ->last_tx_done() method.
If such thing happens and since presence of last_tx_done() is not checked
it will fail in hrtimer callback function txdone_hrtimer() when first
message will be transmitted.

This patch adds check for this method and logging of error on
registration of mailbox controller if it requested timer-based polling.

Signed-off-by: Alexey Klimov <alexey.klimov@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
2017-03-28 23:52:02 +05:30
..
arm_mhu.c
bcm-flexrm-mailbox.c mailbox: Add driver for Broadcom FlexRM ring manager 2017-03-28 23:33:30 +05:30
bcm-pdc-mailbox.c mailbox: bcm-pdc: Add Northstar Plus support to PDC driver 2017-03-28 23:27:56 +05:30
bcm2835-mailbox.c
hi6220-mailbox.c mailbox: constify mbox_chan_ops structures 2017-03-28 23:27:32 +05:30
Kconfig mailbox: Add driver for Broadcom FlexRM ring manager 2017-03-28 23:33:30 +05:30
mailbox-altera.c
mailbox-sti.c mailbox: sti: Fix module autoload for OF registration 2016-12-19 20:10:18 +05:30
mailbox-test.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
mailbox-xgene-slimpro.c mailbox: constify mbox_chan_ops structures 2017-03-28 23:27:32 +05:30
mailbox.c mailbox: check ->last_tx_done for NULL in case of timer-based polling 2017-03-28 23:52:02 +05:30
mailbox.h
Makefile mailbox: Add driver for Broadcom FlexRM ring manager 2017-03-28 23:33:30 +05:30
omap-mailbox.c mailbox/omap: kill omap_mbox_{save/restore}_ctx() functions 2016-04-26 10:19:38 +05:30
pcc.c Merge branches 'acpica' and 'acpi-scan' 2016-12-22 14:34:24 +01:00
pl320-ipc.c mailbox: pl320: remove __raw IO 2016-06-24 13:32:31 +05:30
platform_mhu.c mailbox: Add Platform Message-Handling-Unit variant driver 2016-09-07 13:07:17 +05:30
rockchip-mailbox.c mailbox: rockchip: avoid 64-bit division 2016-03-16 09:18:15 +05:30
tegra-hsp.c mailbox: tegra-hsp: Use after free in tegra_hsp_remove_doorbells() 2016-11-18 14:32:13 +01:00
ti-msgmgr.c mailbox: Introduce TI message manager driver 2016-03-21 20:33:15 +05:30