Commit 8ff1d571 authored by John Garry's avatar John Garry Committed by Martin K. Petersen

hisi_sas: Add v1 hardware initialisation code

Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 50af155b
...@@ -81,6 +81,7 @@ struct hisi_sas_slot { ...@@ -81,6 +81,7 @@ struct hisi_sas_slot {
}; };
struct hisi_sas_hw { struct hisi_sas_hw {
int (*hw_init)(struct hisi_hba *hisi_hba);
int complete_hdr_size; int complete_hdr_size;
}; };
......
...@@ -402,6 +402,10 @@ int hisi_sas_probe(struct platform_device *pdev, ...@@ -402,6 +402,10 @@ int hisi_sas_probe(struct platform_device *pdev,
hisi_sas_init_add(hisi_hba); hisi_sas_init_add(hisi_hba);
rc = hisi_hba->hw->hw_init(hisi_hba);
if (rc)
goto err_out_ha;
rc = scsi_add_host(shost, &pdev->dev); rc = scsi_add_host(shost, &pdev->dev);
if (rc) if (rc)
goto err_out_ha; goto err_out_ha;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment