Skip to content

media: cec/core: fixes and improvements

Hans Verkuil linux-media 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8media: cec/core: max_retries -> max_attemptsdrivers/media/cec/core/cec-adap.c+5 -50 replies
2/8media: cec/core: drop ABORTED/TIMEOUT checkdrivers/media/cec/core/cec-adap.c+0 -70 replies
3/8media: cec/core: handle core events like normal eventsdrivers/media/cec/core/cec-adap.c drivers/media/cec/core/cec-api.c include/media/cec.h+18 -230 replies
4/8media: cec/core: drop cec_post_state_event calldrivers/media/cec/core/cec-adap.c+0 -10 replies
5/8media: cec/core: flush stale STATE_CHANGE eventsdrivers/media/cec/core/cec-adap.c+23 -00 replies
6/8media: cec/core: add a new CEC_LOG_ADDRS_FL_CONFIG_FAILED flagDocumentation/userspace-api/media/cec/cec-ioc-adap-g-log-addrs.rst drivers/media/cec/core/cec-adap.c include/uapi/linux/cec.h+12 -00 replies
7/8media: cec/core: cec-pin: toggle rx_toggle when arb lostdrivers/media/cec/core/cec-pin.c+9 -10 replies
8/8media: cec/core: add error-inj-tx-timeouts debugfs entrydrivers/media/cec/core/cec-adap.c drivers/media/cec/core/cec-core.c include/media/cec.h+40 -00 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/8] media: cec/core: fixes and improvements

Various cec core fixes and improvements.

Most notably the concept of 'core events' was dropped to simplify the code and allow for more STATE_CHANGE events.

Also the process to claim a logical address was improved: retry polling if a poll timed out or aborted instead of bailing out, and if it was not possible to claim a logical address, then expose that to userspace through a new flag.

A new error injection debugfs entry was added as well to allow testing timeouts. A separate patch for cec-compliance will be posted that tests this with the vivid driver.

Regards,

Hans

Hans Verkuil (8):
media: cec/core: max_retries -> max_attempts
media: cec/core: drop ABORTED/TIMEOUT check
media: cec/core: handle core events like normal events
media: cec/core: drop cec_post_state_event call
media: cec/core: flush stale STATE_CHANGE events
media: cec/core: add a new CEC_LOG_ADDRS_FL_CONFIG_FAILED flag
media: cec/core: cec-pin: toggle rx_toggle when arb lost
media: cec/core: add error-inj-tx-timeouts debugfs entry

 .../media/cec/cec-ioc-adap-g-log-addrs.rst    |  7 ++
 drivers/media/cec/core/cec-adap.c             | 85 ++++++++++++-------
 drivers/media/cec/core/cec-api.c              |  5 +-
 drivers/media/cec/core/cec-core.c             | 31 +++++++
 drivers/media/cec/core/cec-pin.c              | 10 ++-
 include/media/cec.h                           |  4 +-
 include/uapi/linux/cec.h                      |  2 +
 7 files changed, 107 insertions(+), 37 deletions(-)
Signature · 1 line
2.53.0