From: Hans Verkuil Date: Wed, 31 Mar 2021 08:32:12 +0000 (+0200) Subject: media: cec/core: clarify rx-arb-lost usage message X-Git-Tag: v5.13-rc1~124^2~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92eda6b7dad6372cd35f13560cad980cf2f6485a;p=thirdparty%2Fkernel%2Flinux.git media: cec/core: clarify rx-arb-lost usage message The rx-arb-lost error injection command only works with set to 'any'. Explicitly say so in the usage message. Also use [] to indicate that the argument is optional. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Documentation/userspace-api/media/cec/cec-pin-error-inj.rst b/Documentation/userspace-api/media/cec/cec-pin-error-inj.rst index 064c8c5a19431..b0efce40471fa 100644 --- a/Documentation/userspace-api/media/cec/cec-pin-error-inj.rst +++ b/Documentation/userspace-api/media/cec/cec-pin-error-inj.rst @@ -44,7 +44,7 @@ error injection status:: # [,] rx-low-drive force a low-drive condition at this bit position # [,] rx-add-byte add a spurious byte to the received CEC message # [,] rx-remove-byte remove the last byte from the received CEC message - # [,] rx-arb-lost generate a POLL message to trigger an arbitration lost + # any[,] rx-arb-lost [] generate a POLL message to trigger an arbitration lost # # TX error injection settings: # tx-ignore-nack-until-eom ignore early NACKs until EOM diff --git a/drivers/media/cec/core/cec-pin-error-inj.c b/drivers/media/cec/core/cec-pin-error-inj.c index c0088d3b8e3d9..fc0968b9d40e2 100644 --- a/drivers/media/cec/core/cec-pin-error-inj.c +++ b/drivers/media/cec/core/cec-pin-error-inj.c @@ -277,7 +277,7 @@ int cec_pin_error_inj_show(struct cec_adapter *adap, struct seq_file *sf) seq_puts(sf, "# [,] rx-low-drive force a low-drive condition at this bit position\n"); seq_puts(sf, "# [,] rx-add-byte add a spurious byte to the received CEC message\n"); seq_puts(sf, "# [,] rx-remove-byte remove the last byte from the received CEC message\n"); - seq_puts(sf, "# [,] rx-arb-lost generate a POLL message to trigger an arbitration lost\n"); + seq_puts(sf, "# any[,] rx-arb-lost [] generate a POLL message to trigger an arbitration lost\n"); seq_puts(sf, "#\n"); seq_puts(sf, "# TX error injection settings:\n"); seq_puts(sf, "# tx-ignore-nack-until-eom ignore early NACKs until EOM\n");