mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
96d947d4ab
The 'led-trigger-tty' uses the same naming in the ABI documentation as
the 'led-trigger-netdev'. Which leads to the following warning when
building the documentation.
Warning: /sys/class/leds/<led>/rx is defined 2 times:
Documentation/ABI/testing/sysfs-class-led-trigger-tty:7
Documentation/ABI/testing/sysfs-class-led-trigger-netdev:49
Warning: /sys/class/leds/<led>/tx is defined 2 times:
Documentation/ABI/testing/sysfs-class-led-trigger-tty:15
Documentation/ABI/testing/sysfs-class-led-trigger-netdev:34
Renaming the 'What' path by prefixing it with 'tty_' solves this problem.
Fixes: 6dec659896
("leds: ledtrig-tty: Add additional line state evaluation")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Link: https://lore.kernel.org/r/20240110133410.81645-1-fe@dev.tdt.de
Signed-off-by: Lee Jones <lee@kernel.org>
(cherry picked from commit ea411a8422c1d7f8193d726fb76ba09534b6a5fe)
Signed-off-by: Lee Jones <lee@kernel.org>
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
What: /sys/class/leds/<tty_led>/ttyname
|
|
Date: Dec 2020
|
|
KernelVersion: 5.10
|
|
Contact: linux-leds@vger.kernel.org
|
|
Description:
|
|
Specifies the tty device name of the triggering tty
|
|
|
|
What: /sys/class/leds/<tty_led>/rx
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
Signal reception (rx) of data on the named tty device.
|
|
If set to 0, the LED will not blink on reception.
|
|
If set to 1 (default), the LED will blink on reception.
|
|
|
|
What: /sys/class/leds/<tty_led>/tx
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
Signal transmission (tx) of data on the named tty device.
|
|
If set to 0, the LED will not blink on transmission.
|
|
If set to 1 (default), the LED will blink on transmission.
|
|
|
|
What: /sys/class/leds/<tty_led>/cts
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
CTS = Clear To Send
|
|
DCE is ready to accept data from the DTE.
|
|
If the line state is detected, the LED is switched on.
|
|
If set to 0 (default), the LED will not evaluate CTS.
|
|
If set to 1, the LED will evaluate CTS.
|
|
|
|
What: /sys/class/leds/<tty_led>/dsr
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
DSR = Data Set Ready
|
|
DCE is ready to receive and send data.
|
|
If the line state is detected, the LED is switched on.
|
|
If set to 0 (default), the LED will not evaluate DSR.
|
|
If set to 1, the LED will evaluate DSR.
|
|
|
|
What: /sys/class/leds/<tty_led>/dcd
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
DCD = Data Carrier Detect
|
|
DTE is receiving a carrier from the DCE.
|
|
If the line state is detected, the LED is switched on.
|
|
If set to 0 (default), the LED will not evaluate CAR (DCD).
|
|
If set to 1, the LED will evaluate CAR (DCD).
|
|
|
|
What: /sys/class/leds/<tty_led>/rng
|
|
Date: February 2024
|
|
KernelVersion: 6.8
|
|
Description:
|
|
RNG = Ring Indicator
|
|
DCE has detected an incoming ring signal on the telephone
|
|
line. If the line state is detected, the LED is switched on.
|
|
If set to 0 (default), the LED will not evaluate RNG.
|
|
If set to 1, the LED will evaluate RNG.
|