diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-03-01 10:02:24 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 15:16:21 +0300 |
commit | 2b76e5392d0647c35226b464269b87026578ea83 (patch) | |
tree | 586de0b934227dce68704f1162ded26e94cb7d95 /drivers/media/cec/cec-pin-priv.h | |
parent | 865463fc03ed6d1685d19dbef847b0e7abcc7fbf (diff) | |
download | linux-2b76e5392d0647c35226b464269b87026578ea83.tar.xz |
media: cec-pin: improve status log
Keep track of the number of short or long start bits, the number
of short or long data bits and the number of initiated or detected
low drive conditions.
Show this information in the status debugfs log.
Helpful when debugging, particularly when doing error injection
as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/cec/cec-pin-priv.h')
-rw-r--r-- | drivers/media/cec/cec-pin-priv.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-pin-priv.h b/drivers/media/cec/cec-pin-priv.h index c9349f68e554..dae8ba6f1037 100644 --- a/drivers/media/cec/cec-pin-priv.h +++ b/drivers/media/cec/cec-pin-priv.h @@ -181,6 +181,18 @@ struct cec_pin { struct cec_msg rx_msg; u32 rx_bit; bool rx_toggle; + u32 rx_start_bit_low_too_short_cnt; + u64 rx_start_bit_low_too_short_ts; + u32 rx_start_bit_low_too_short_delta; + u32 rx_start_bit_too_short_cnt; + u64 rx_start_bit_too_short_ts; + u32 rx_start_bit_too_short_delta; + u32 rx_start_bit_too_long_cnt; + u32 rx_data_bit_too_short_cnt; + u64 rx_data_bit_too_short_ts; + u32 rx_data_bit_too_short_delta; + u32 rx_data_bit_too_long_cnt; + u32 rx_low_drive_cnt; struct cec_msg work_rx_msg; u8 work_tx_status; @@ -205,6 +217,7 @@ struct cec_pin { bool tx_generated_poll; bool tx_post_eom; u8 tx_extra_bytes; + u32 tx_low_drive_cnt; #ifdef CONFIG_CEC_PIN_ERROR_INJ u64 error_inj[CEC_ERROR_INJ_OP_ANY + 1]; u8 error_inj_args[CEC_ERROR_INJ_OP_ANY + 1][CEC_ERROR_INJ_NUM_ARGS]; |