|
@@ -577,10 +577,8 @@ static int hisi_sas_dev_found(struct domain_device *device)
|
|
for (phy_no = 0; phy_no < phy_num; phy_no++) {
|
|
for (phy_no = 0; phy_no < phy_num; phy_no++) {
|
|
phy = &parent_dev->ex_dev.ex_phy[phy_no];
|
|
phy = &parent_dev->ex_dev.ex_phy[phy_no];
|
|
if (SAS_ADDR(phy->attached_sas_addr) ==
|
|
if (SAS_ADDR(phy->attached_sas_addr) ==
|
|
- SAS_ADDR(device->sas_addr)) {
|
|
|
|
- sas_dev->attached_phy = phy_no;
|
|
|
|
|
|
+ SAS_ADDR(device->sas_addr))
|
|
break;
|
|
break;
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
if (phy_no == phy_num) {
|
|
if (phy_no == phy_num) {
|
|
@@ -2079,17 +2077,6 @@ err_out:
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
-void hisi_sas_init_add(struct hisi_hba *hisi_hba)
|
|
|
|
-{
|
|
|
|
- int i;
|
|
|
|
-
|
|
|
|
- for (i = 0; i < hisi_hba->n_phy; i++)
|
|
|
|
- memcpy(&hisi_hba->phy[i].dev_sas_addr,
|
|
|
|
- hisi_hba->sas_addr,
|
|
|
|
- SAS_ADDR_SIZE);
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL_GPL(hisi_sas_init_add);
|
|
|
|
-
|
|
|
|
int hisi_sas_probe(struct platform_device *pdev,
|
|
int hisi_sas_probe(struct platform_device *pdev,
|
|
const struct hisi_sas_hw *hw)
|
|
const struct hisi_sas_hw *hw)
|
|
{
|
|
{
|
|
@@ -2143,8 +2130,6 @@ int hisi_sas_probe(struct platform_device *pdev,
|
|
sha->sas_port[i] = &hisi_hba->port[i].sas_port;
|
|
sha->sas_port[i] = &hisi_hba->port[i].sas_port;
|
|
}
|
|
}
|
|
|
|
|
|
- hisi_sas_init_add(hisi_hba);
|
|
|
|
-
|
|
|
|
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;
|