media: cros-ec-cec: Support multiple ports in write command
authorReka Norman <rekanorman@chromium.org>
Fri, 25 Aug 2023 02:43:57 +0000 (12:43 +1000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:54 +0000 (09:39 +0200)
commitadbfc747ddfb48c06d238640e16939916b7a4494
tree89fe6f5d2626b0266dd5204d27e387f47f1db722
parente90bd1fe7cda1aa267fe683e392b4433ec2dc0d3
media: cros-ec-cec: Support multiple ports in write command

Add a v1 of the CEC write command which contains a port parameter. Check
which versions of the write command the EC supports and use the highest
supported version. If it only supports v0, check that there is only one
port. With v0, the EC will assume all write commands are for port 0.

Signed-off-by: Reka Norman <rekanorman@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/cec/platform/cros-ec/cros-ec-cec.c
include/linux/platform_data/cros_ec_commands.h