diff options
author | 2017-11-06 06:39:29 -0800 | |
---|---|---|
committer | 2017-11-13 15:53:57 -0500 | |
commit | 685894dd9bd03b92803fbc72565789713f067d4c (patch) | |
tree | ac6456ad4e32e279e35bdd7ecd6f3318e09be656 /drivers/base | |
parent | IB/hfi1: Mask upper 16Bits of Extended LID prior to rvt_cq_entry (diff) | |
download | linux-685894dd9bd03b92803fbc72565789713f067d4c.tar.gz linux-685894dd9bd03b92803fbc72565789713f067d4c.tar.bz2 linux-685894dd9bd03b92803fbc72565789713f067d4c.zip |
IB/hfi1: Handle initial value of 0 for CCTI setting
When the driver is loaded it sets the default CCTI value to be 0. When the FM
starts and CCA is disabled the driver sets the max value to 65535 due the driver
subtracting 1 from 0 and the fact that the CCTI value is a u16.
Special case the subtraction to find the index for a 0 value.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions