diff options
author | Varun Prakash <varun@chelsio.com> | 2018-08-11 17:44:08 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-08-27 18:26:10 +0200 |
commit | 68bdc630721c40e908d22cffe07b5ca225a69f6e (patch) | |
tree | 1cbaf29406a0f091d3922e8f345fe4c2de7e56b8 /drivers/scsi/csiostor/csio_hw.h | |
parent | scsi: csiostor: add a check for NULL pointer after kmalloc() (diff) | |
download | linux-68bdc630721c40e908d22cffe07b5ca225a69f6e.tar.xz linux-68bdc630721c40e908d22cffe07b5ca225a69f6e.zip |
scsi: csiostor: fix incorrect port capabilities
- use be32_to_cpu() instead of ntohs() for 32 bit port capabilities.
- add a new function fwcaps32_to_caps16() to convert 32 bit port
capabilities to 16 bit port capabilities.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/csiostor/csio_hw.h')
-rw-r--r-- | drivers/scsi/csiostor/csio_hw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/csiostor/csio_hw.h b/drivers/scsi/csiostor/csio_hw.h index 9e73ef771eb7..e351af6e7c81 100644 --- a/drivers/scsi/csiostor/csio_hw.h +++ b/drivers/scsi/csiostor/csio_hw.h @@ -639,6 +639,7 @@ int csio_handle_intr_status(struct csio_hw *, unsigned int, fw_port_cap32_t fwcap_to_fwspeed(fw_port_cap32_t acaps); fw_port_cap32_t fwcaps16_to_caps32(fw_port_cap16_t caps16); +fw_port_cap16_t fwcaps32_to_caps16(fw_port_cap32_t caps32); fw_port_cap32_t lstatus_to_fwcap(u32 lstatus); int csio_hw_start(struct csio_hw *); |