scsi: csiostor: fix incorrect port capabilities
authorVarun Prakash <varun@chelsio.com>
Sat, 11 Aug 2018 15:44:08 +0000 (21:14 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 27 Aug 2018 16:26:10 +0000 (12:26 -0400)
commit68bdc630721c40e908d22cffe07b5ca225a69f6e
tree1cbaf29406a0f091d3922e8f345fe4c2de7e56b8
parent89809b028b6f54187b7d81a0c69b35d394c52e62
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>
drivers/scsi/csiostor/csio_hw.c
drivers/scsi/csiostor/csio_hw.h
drivers/scsi/csiostor/csio_mb.c