aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMatthias Fend <matthias.fend@emfend.at>2025-01-21 10:56:55 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2025-02-25 09:07:25 +0100
commit7d8fa0ee43e57c629de2c13f23397f0c394655e9 (patch)
treedb1b56feb3af579d3341bcd29c1c66346c1e6965 /tools/perf/scripts/python/bin
parentmedia: tc358746: improve calculation of the D-PHY timing registers (diff)
downloadlinux-7d8fa0ee43e57c629de2c13f23397f0c394655e9.tar.gz
linux-7d8fa0ee43e57c629de2c13f23397f0c394655e9.zip
media: tc358746: fix locking issue
In tc358746_link_validate() an attempt is made to get the state lock of the subdev, but since this is already held by the calling function v4l2_subdev_link_validate(), this leads to a deadlock. Another problem is that this function queries the link frequency of the source device. Since some image sensors use the lock of the v4l2 control handler as a state lock, which is already held at this point, a deadlock can also occur here. Move the calculation of the FIFO size from tc358746_link_validate() to tc358746_apply_misc_config() to avoid the deadlocks mentioned. Signed-off-by: Matthias Fend <matthias.fend@emfend.at> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions