]> git.baikalelectronics.ru Git - kernel.git/commit
media: allegro: rework mbox handling
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 13 Jul 2020 14:42:18 +0000 (16:42 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:00:31 +0000 (14:00 +0200)
commit7cdc8054699d3799d7c593d10103d7c9add01d00
treeb7135a581e0525b1a342773110168f8d3054388f
parent602e2558caf57ea15aa67a33265114ee6872898b
media: allegro: rework mbox handling

Add a send/notify abstraction for the mailbox and separate the message
handling in the driver from the code to read and write message to the
mailbox.

This untangles how mails are written into the MCU's SRAM and signaled to
the MCU from the protocol between the driver and the firmware.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c