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)
commit94dc765602618fdab8bc4eaa96e3053929d8ff8f
treeb7135a581e0525b1a342773110168f8d3054388f
parentf2f475e4c5bb5343e35c0973096a391a09677d1a
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