All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] cec core fixes
@ 2021-12-01 12:41 Hans Verkuil
  2021-12-01 12:41 ` [PATCH 1/2] cec-pin: fix interrupt en/disable handling Hans Verkuil
  2021-12-01 12:41 ` [PATCH 2/2] cec: fix a deadlock situation Hans Verkuil
  0 siblings, 2 replies; 3+ messages in thread
From: Hans Verkuil @ 2021-12-01 12:41 UTC (permalink / raw)
  To: linux-media; +Cc: Johan Fjeldtvedt

Two patches that fix two serious issues in the cec core framework.
The first will cause drivers that use the pin framework to stop
working in certain circumstances. Currently it affects only the
cec-gpio driver.

The second is a deadlock that can hit when closing the last open
filehandle of a driver that has an invalid physical address. Again,
this primarily hits cec-gpio, but I believe it can also happen
for other CEC drivers. This situation will typically occur when
monitoring the CEC traffic with cec-ctl --monitor and then stopping
cec-ctl with Ctrl-C.

While these patches should be backported, I decided to not to
send them out for 5.16 since I would like to give it more time for
testing.

Note also that a third issue was found with cec-pin where a atomic
operation can sleep. See:

https://lore.kernel.org/linux-media/a06e7c55-f25d-8339-faea-9be6d31d1c87@xs4all.nl/T/#u

The issue appears to be in the gpio and/or pinctrl framework.

Regards,

	Hans

Hans Verkuil (2):
  cec-pin: fix interrupt en/disable handling
  cec: fix a deadlock situation

 drivers/media/cec/core/cec-adap.c | 38 +++++++++++++++++--------------
 drivers/media/cec/core/cec-api.c  |  6 +++++
 drivers/media/cec/core/cec-core.c |  3 +++
 drivers/media/cec/core/cec-pin.c  | 31 ++++++++++++++-----------
 include/media/cec.h               | 11 +++++++--
 5 files changed, 57 insertions(+), 32 deletions(-)

-- 
2.33.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-01 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 12:41 [PATCH 0/2] cec core fixes Hans Verkuil
2021-12-01 12:41 ` [PATCH 1/2] cec-pin: fix interrupt en/disable handling Hans Verkuil
2021-12-01 12:41 ` [PATCH 2/2] cec: fix a deadlock situation Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.