]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75361097d89d8a2ef7130863fdc8abf00491cfd1
treec1ed4534822dd824f23b7e615e5efa8b43da2a50
parent1aadae3cb859ff938f02910e25f39e4f5aaed894
scsi: qedi: Add the CRC size within iSCSI NVM image

The QED driver commit, 419dd9d0cc6d ("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