staging/rdma/hfi1: Fix reporting of LED status in Get(LedInfo) and Get(PortInfo)
authorEaswar Hariharan <easwar.hariharan@intel.com>
Fri, 26 Feb 2016 21:33:28 +0000 (13:33 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:46 +0000 (20:45 -0500)
commit409b146225cdefcc76d9956e323e84e510208884
tree48f5ed46417ecb1e567d77a127232a92e60bf890
parent24487dd39cb24c23560c2dc726c6d3375f42a697
staging/rdma/hfi1: Fix reporting of LED status in Get(LedInfo) and Get(PortInfo)

The LedInfo SMA attribute is redefined to control the LED beaconing
state machine instead of the LED directly. In accordance, we now
return the state of LED beaconing, represented by whether the beaconing
timer is active, instead of the state of the LED itself for SMA queries
Get(LedInfo) and Get(PortInfo). While we are at it, we fix the beaconing
timer control code so that the state of the timer is accurately updated.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/driver.c
drivers/staging/rdma/hfi1/mad.c