summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maxtram95@gmail.com>2021-02-05 23:51:39 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-11 11:40:28 +0100
commit8a7e27fd5cd696ba564a3f62cedef7269cfd0723 (patch)
tree342ad489b0a35d0957410ccad3ccbe49923a12d2 /tools/perf/scripts
parentf09f9f93afad770a04b35235a0aa465fcc8d6e3d (diff)
downloadkernel-8a7e27fd5cd696ba564a3f62cedef7269cfd0723.tar.gz
media: usbtv: Fix deadlock on suspend
usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation waits until the refcount of the sound card device drops to zero, however, if its file is open, snd_card_file_add takes a reference, which can't be dropped during the suspend, because the userspace processes are already frozen at this point. snd_card_free waits for completion forever, leading to a hang on suspend. This commit fixes this deadlock condition by replacing snd_card_free with snd_card_free_when_closed, that doesn't wait until all references are released, allowing suspend to progress. Fixes: 63ddf68de52e ("[media] usbtv: add audio support") Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
4c7'>arm64: dts: freescale: Separate each group of data in the property 'reg'Zhen Lei 2021-01-30arm64: dts: lx2160a: Add flexcan supportKuldeep Singh 2021-01-11arm64: dts: lx2160a: use constants in the clockgen phandleMichael Walle 2021-01-05arm64: dts: lx2160a: add DT node for external interrupt linesBiwen Li 2020-11-30arm64: dts: lx2160a: add PCS MDIO and PCS PHY nodesIoana Ciornei 2020-09-22arm64: dts: layerscape: Add label to pcie nodesWasim Khan 2020-07-13arm64: dts: lx2160a: Increase configuration space sizeWasim Khan 2020-07-11arm64: dts: lx2160a: add ftm_alarm0 DT nodeBiwen Li 2020-07-11arm64: dts: lx2160a: add dspi controller DT nodesChuanhua Han 2020-04-29arm64: dts: lx2160a: add more thermal zone supportYuantian Tang 2020-03-11arm64: dts: layerscape: add iommu-map property to pci nodesHou Zhiqiang 2020-02-24arm64: dts: lx2160a: Add PCIe controller DT nodesHou Zhiqiang 2019-12-23arm64: dts: lx2160a: add emdio2 nodeRussell King 2019-12-11arm64: dts: lx2160a: add emdio1 nodeIoana Ciornei 2019-11-06Merge tag 'imx-dt64-tmu-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git...Olof Johansson 2019-10-28arm64: dts: lx2160a: add tmu device nodeYuantian Tang 2019-10-14arm64: dts: lx2160a: Correct CPU core idle state nameRan Wang 2019-10-07arm64: dts: mark lx2160a esdhc controllers dma coherentRussell King 2019-08-19arm64: dts: lx2160a: Fix incorrect I2C clock dividerChuanhua Han 2019-08-03arm64: dts: add the console node for DPAA2 platformsIoana Ciornei