]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
scsi: hisi_sas: Add missing PHY spinlock init
authorJohn Garry <john.garry@huawei.com>
Thu, 31 May 2018 12:50:49 +0000 (20:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Jun 2018 02:02:25 +0000 (22:02 -0400)
The init is missed for hisi_sas_phy spinlock, so add it.

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_main.c

index 20aab1079e4ebec8c18db927d36f893a40dfa59c..781b2af483a2df5de6e2e2ee845aeeb315e209df 100644 (file)
@@ -808,6 +808,8 @@ static void hisi_sas_phy_init(struct hisi_hba *hisi_hba, int phy_no)
 
        for (i = 0; i < HISI_PHYES_NUM; i++)
                INIT_WORK(&phy->works[i], hisi_sas_phye_fns[i]);
+
+       spin_lock_init(&phy->lock);
 }
 
 static void hisi_sas_port_notify_formed(struct asd_sas_phy *sas_phy)