Files
linux/drivers/media
Hans Verkuil c93a0890e9 media: cobalt: fix race condition in setting HPD
[ Upstream commit 3d37ef41be ]

The cobalt_s_bit_sysctrl reads the old register value over PCI,
then changes a bit and sets writes the new value to the register.

This is used among other things for setting the HPD output pin.

But if the HPD is changed for multiple inputs at the same time,
then this causes a race condition where a stale value is read.

Serialize this function with a mutex.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:15:43 +02:00
..
2020-10-30 10:38:26 +01:00
2018-05-09 16:26:50 -04:00