Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: cec/core: clarify rx-arb-lost usage message

The rx-arb-lost error injection command only works with <op> set to 'any'.
Explicitly say so in the usage message.

Also use [] to indicate that the <poll> argument is optional.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
92eda6b7 2f65dd20

+2 -2
+1 -1
Documentation/userspace-api/media/cec/cec-pin-error-inj.rst
··· 44 44 # <op>[,<mode>] rx-low-drive <bit> force a low-drive condition at this bit position 45 45 # <op>[,<mode>] rx-add-byte add a spurious byte to the received CEC message 46 46 # <op>[,<mode>] rx-remove-byte remove the last byte from the received CEC message 47 - # <op>[,<mode>] rx-arb-lost <poll> generate a POLL message to trigger an arbitration lost 47 + # any[,<mode>] rx-arb-lost [<poll>] generate a POLL message to trigger an arbitration lost 48 48 # 49 49 # TX error injection settings: 50 50 # tx-ignore-nack-until-eom ignore early NACKs until EOM
+1 -1
drivers/media/cec/core/cec-pin-error-inj.c
··· 277 277 seq_puts(sf, "# <op>[,<mode>] rx-low-drive <bit> force a low-drive condition at this bit position\n"); 278 278 seq_puts(sf, "# <op>[,<mode>] rx-add-byte add a spurious byte to the received CEC message\n"); 279 279 seq_puts(sf, "# <op>[,<mode>] rx-remove-byte remove the last byte from the received CEC message\n"); 280 - seq_puts(sf, "# <op>[,<mode>] rx-arb-lost <poll> generate a POLL message to trigger an arbitration lost\n"); 280 + seq_puts(sf, "# any[,<mode>] rx-arb-lost [<poll>] generate a POLL message to trigger an arbitration lost\n"); 281 281 seq_puts(sf, "#\n"); 282 282 seq_puts(sf, "# TX error injection settings:\n"); 283 283 seq_puts(sf, "# tx-ignore-nack-until-eom ignore early NACKs until EOM\n");