]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: create hisi_sas_get_fw_info()
authorJohn Garry <john.garry@huawei.com>
Wed, 14 Jun 2017 15:33:18 +0000 (23:33 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Jun 2017 01:31:25 +0000 (21:31 -0400)
commitfbc8d89643a4395613b365e348ac78945f860447
treea2510e31aedf7c1f3f0141c38b9bc7f5c5bf06d9
parent2e5d7c850cf4472f48cb60060dc15fd768a295f2
scsi: hisi_sas: create hisi_sas_get_fw_info()

Move the functionality to retrieve the fw info into a dedicated device
type-agnostic function, hisi_sas_get_fw_info().

The reasoning is that this function will be required for future
pci-based platforms.

Also add some debug logs for failure.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c