diff options
| author | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-07-10 13:07:36 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2026-07-17 10:14:19 +0200 |
| commit | 22c0f8e2d9fa156ac25ff1854142956f2464e5c8 (patch) | |
| tree | 4b0b1347dd0828633c46f3cbb9c569fdeb4f5173 /include/media | |
| parent | cefce07c6ca56c826e046feaa70b82a0d708bc71 (diff) | |
| download | linux-next-22c0f8e2d9fa156ac25ff1854142956f2464e5c8.tar.gz linux-next-22c0f8e2d9fa156ac25ff1854142956f2464e5c8.zip | |
media: cec/core: add error-inj-tx-timeouts debugfs entry
Add a new debugfs entry that makes it possible to do
error injection of failing the next N transmits by a
timeout.
This can be used to test what happens in that case during
the claiming of a free logical address.
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/cec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/cec.h b/include/media/cec.h index 5aff399e69e6..4c8b0950b377 100644 --- a/include/media/cec.h +++ b/include/media/cec.h @@ -221,6 +221,8 @@ struct cec_adap_ops { * @tx_error_log_cnt: number of logged Error transmits since the adapter was * enabled. Used to avoid flooding the kernel log if this * happens a lot. + * @error_inj_tx_timeouts: error injection: the next @error_inj_tx_timeouts + * transmits will time out. * @notifier: CEC notifier * @pin: CEC pin status struct * @cec_dir: debugfs cec directory @@ -281,6 +283,8 @@ struct cec_adapter { u32 tx_low_drive_log_cnt; u32 tx_error_log_cnt; + u32 error_inj_tx_timeouts; + #ifdef CONFIG_CEC_NOTIFIER struct cec_notifier *notifier; #endif |
