scsi: fnic: Refactor code in fnic probe to initialize SCSI layer
authorKaran Tilak Kumar <kartilak@cisco.com>
Thu, 7 Jul 2022 20:51:55 +0000 (13:51 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Jul 2022 03:21:10 +0000 (23:21 -0400)
commitaec95e3a8dedb626739efd3d7d6cb7110cab31b0
treecb9045a8caf6d92a68cf8fb2c3da5ee9a5e28f47
parentf712e24c0b2e638481b439ee2f1f33d6938a6cb9
scsi: fnic: Refactor code in fnic probe to initialize SCSI layer

Refactor code from fnic probe into a different function so that
scsi layer initialization code is grouped together.
Also, add log messages for better debugging.

Link: https://lore.kernel.org/r/20220707205155.692688-1-kartilak@cisco.com
Co-developed-by: Gian Carlo Boffa <gcboffa@cisco.com>
Signed-off-by: Gian Carlo Boffa <gcboffa@cisco.com>
Co-developed-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
Signed-off-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_main.c