diff options
| author | Joe Carnuccio <[email protected]> | 2020-02-12 13:44:12 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-02-21 18:30:59 -0500 |
| commit | 07553b1e83b46414caa693ba10d1a16487409b61 (patch) | |
| tree | 818e966461e60ab6b556da49d03ff90ff4a3f6d6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1bf630fddd505e4d3e1c7e857eb54f8da787fe9a (diff) | |
scsi: qla2xxx: Add beacon LED config sysfs interface
This patch provides an interface to do the following (using MBC 0x3B):
- Displays (in hex) the LED config words for all three LEDs.
- Programs the config words for one LED or for all three LEDs.
The sysfs node defined is named beacon_config.
First, to allow driver to gain LED control, do this:
# echo 1 > /sys/class/scsi_host/host#/beacon
Then, to display config words for all three LEDs do this:
# cat /sys/class/scsi_host/host#/beacon_config
To set config words for all three LEDs do this:
# echo 3 xxxx yyyy zzzz > /sys/class/scsi_host/host#/beacon_config
Or, to set config word for a specific single LED n do this:
# echo n xxxx > /sys/class/scsi_host/host#/beacon_config
where n is the LED number (0, 1, 2)
Finally, to restore LED control back to firmware, do this:
# echo 0 > /sys/class/scsi_host/host#/beacon
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joe Carnuccio <[email protected]>
Signed-off-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions