All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 5d74242e authored by John Garry's avatar John Garry Committed by Martin K. Petersen

hisi_sas: Add phy SAS ADDR initialization

The SAS address for the HBA comes from the device tree.
Signed-off-by: default avatarJohn Garry <>
Reviewed-by: default avatarArnd Bergmann <>
Reviewed-by: default avatarHannes Reinecke <>
Signed-off-by: default avatarMartin K. Petersen <>
parent 9101a079
......@@ -39,6 +39,7 @@
struct hisi_sas_phy {
struct asd_sas_phy sas_phy;
u64 dev_sas_addr;
struct hisi_sas_port {
......@@ -281,6 +281,16 @@ err_out:
return NULL;
static void hisi_sas_init_add(struct hisi_hba *hisi_hba)
int i;
for (i = 0; i < hisi_hba->n_phy; i++)
int hisi_sas_probe(struct platform_device *pdev,
const struct hisi_sas_hw *hw)
......@@ -334,6 +344,8 @@ int hisi_sas_probe(struct platform_device *pdev,
sha->sas_port[i] = &hisi_hba->port[i].sas_port;
rc = scsi_add_host(shost, &pdev->dev);
if (rc)
goto err_out_ha;
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