Skip to content

media: cec: improve err inj and cec-gpio

Hans Verkuil linux-media 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5media: cec: core: add glitch error injectiondrivers/media/cec/core/cec-pin-error-inj.c drivers/media/cec/core/cec-pin-priv.h drivers/media/cec/core/cec-pin.c+83 -10 replies
2/5media: cec: core: add rx-no-low-drive settingdrivers/media/cec/core/cec-pin-error-inj.c drivers/media/cec/core/cec-pin-priv.h drivers/media/cec/core/cec-pin.c+13 -10 replies
3/5Documentation: media: cec: update error inj docDocumentation/userspace-api/media/cec/cec-pin-error-inj.rst+42 -00 replies
4/5media: cec: cec-gpio: rename functionsdrivers/media/cec/platform/cec-gpio/cec-gpio.c+16 -160 replies
5/5media: cec: cec-gpio: reading hpd/5v is allowed to sleepdrivers/media/cec/platform/cec-gpio/cec-gpio.c+14 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] media: cec: improve err inj and cec-gpio

This patch series adds support for injecting 'glitches' in the CEC pulses. Proper CEC hardware will have 'deglitch' support to ignore short spikes, but if this is not done well it can actually reply with a 'Low Drive' condition, effectively making CEC impossible to use.

It is hard to reproduce this in real life, so being able to create this situation helps debugging bad CEC hardware.

The last two patches relax the requirements for the HPD and 5V
interrupts: reading the HPD/5V value is allowed to sleep. These signals are not time-sensitive, so that's fine.

Regards,

Hans

Hans Verkuil (5):
media: cec: core: add glitch error injection
media: cec: core: add rx-no-low-drive setting
Documentation: media: cec: update error inj doc
media: cec: cec-gpio: rename functions
media: cec: cec-gpio: reading hpd/5v is allowed to sleep

 .../media/cec/cec-pin-error-inj.rst           | 42 ++++++++++++
 drivers/media/cec/core/cec-pin-error-inj.c    | 59 +++++++++++++++-
 drivers/media/cec/core/cec-pin-priv.h         |  8 +++
 drivers/media/cec/core/cec-pin.c              | 31 ++++++++-
 .../media/cec/platform/cec-gpio/cec-gpio.c    | 68 ++++++++++---------
 5 files changed, 173 insertions(+), 35 deletions(-)
Signature · 1 line
2.47.2