Joe Carnuccio 07553b1e83 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/20200212214436.25532-2-hmadhani@marvell.com
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2020-02-21 18:30:59 -05:00
..
2020-01-29 18:16:16 -08:00
2019-09-30 23:59:53 -04:00
2020-01-29 18:16:16 -08:00
2019-12-27 17:28:41 -08:00
2019-12-02 13:37:02 -08:00
2019-11-07 06:43:18 -07:00
2019-09-21 10:50:15 -07:00
2019-09-21 10:50:15 -07:00
2019-03-02 11:39:54 -08:00
2019-07-11 15:17:41 -07:00
2019-11-12 22:21:35 -05:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-07-11 15:14:01 -07:00
2019-06-18 19:46:18 -04:00
2019-07-11 15:17:41 -07:00
2020-01-06 20:59:04 -07:00
2019-07-11 15:14:01 -07:00
2019-07-11 15:17:41 -07:00
2020-02-12 23:00:42 -05:00
2019-12-02 13:37:02 -08:00
2019-07-11 15:14:01 -07:00
2020-02-12 23:00:42 -05:00
2020-01-29 18:16:16 -08:00
2019-12-08 12:23:42 -08:00
2019-07-11 15:14:01 -07:00
2018-12-18 23:19:21 -05:00
2020-02-10 22:46:55 -05:00
2019-07-11 15:14:01 -07:00