]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence
authorAnup Patel <anup.patel@broadcom.com>
Tue, 3 Oct 2017 05:21:48 +0000 (10:51 +0530)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 27 Oct 2017 07:33:05 +0000 (13:03 +0530)
commit3c6ec6b1557d602d8c69a541bc0fd8745e0c366b
treea65f9a932dc8d6552f97c5df7cdd746562ce6923
parentee03e5e9952493276af850470e1696d83a6ff94a
mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence

As-per suggestion from FlexRM HW folks, we have to first set
FlexRM ring flush state and then clear it for FlexRM ring flush
to work properly.

Currently, the FlexRM driver has incomplete FlexRM ring flush
sequence which causes repeated insmod+rmmod of mailbox client
drivers to fail.

This patch fixes FlexRM ring flush sequence in flexrm_shutdown()
as described above.

Fixes: b0dadb592a8d ("mailbox: Add driver for Broadcom FlexRM
ring manager")

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-flexrm-mailbox.c