media: rcar-csi2: Serialize access to set_fmt and get_fmt
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 15 Sep 2021 01:50:13 +0000 (03:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 Oct 2021 07:36:51 +0000 (09:36 +0200)
commit5f4eecd5e903ec0f59f71e85f469ee2315b81550
tree82c854277270108982c97cd2df2525fc53b7998a
parent984166720eb42e59c0c651f161c291b32dc360fc
media: rcar-csi2: Serialize access to set_fmt and get_fmt

The access to the internal storage of the format rcar_csi2.mf should be
serialized, extend the existing lock mutex to also cover this.

While at it document the mutex.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-csi2.c