scsi: qedi: Add the CRC size within iSCSI NVM image
authorNilesh Javali <nilesh.javali@cavium.com>
Thu, 30 Aug 2018 06:55:53 +0000 (23:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 30 Aug 2018 11:15:22 +0000 (07:15 -0400)
commitc77a2fa3ff8f73d1a485e67e6f81c64823739d59
treec1ed4534822dd824f23b7e615e5efa8b43da2a50
parent05a86e78ea9823ec25b3515db078dd8a76fc263c
scsi: qedi: Add the CRC size within iSCSI NVM image

The QED driver commit, 1ac4329a1cff ("qed: Add configuration information
to register dump and debug data"), removes the CRC length validation
causing nvm_get_image failure while loading qedi driver:

[qed_mcp_get_nvm_image:2700(host_10-0)]Image [0] is too big - 00006008 bytes
where only 00006004 are available
[qedi_get_boot_info:2253]:10: Could not get NVM image. ret = -12

Hence add and adjust the CRC size to iSCSI NVM image to read boot info at
qedi load time.

Signed-off-by: Nilesh Javali <nilesh.javali@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi.h
drivers/scsi/qedi/qedi_main.c