media: allegro: warn if response message has an unexpected size
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:29 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:18:33 +0000 (09:18 +0100)
commit0600130e65f96c9ff72766df73d4b256caa32d04
tree82e96e6393ca465de718b00896c674823b0055dd
parent857a31f1c1c832e0a173d96af4688cc5212da120
media: allegro: warn if response message has an unexpected size

The driver uses structs to parse the responses from the VCU and expects
a certain size of the responses. However, the size and format of the
mails is not stable across firmware versions. Therefore, print a warning
if the size does not match the expected size to warn the user that
strange things might happen.

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