lkml.org 
[lkml]   [2020]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 206/222] scsi: hisi_sas: Return directly if init hardware failed
    Date
    From: Xiang Chen <chenxiang66@hisilicon.com>

    commit 547fde8b5a1923050f388caae4f76613b5a620e0 upstream.

    Need to return directly if init hardware failed.

    Fixes: 73a4925d154c ("scsi: hisi_sas: Update all the registers after suspend and resume")
    Link: https://lore.kernel.org/r/1573551059-107873-3-git-send-email-john.garry@huawei.com
    Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
    Signed-off-by: John Garry <john.garry@huawei.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
    +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
    @@ -3423,6 +3423,7 @@ static int hisi_sas_v3_resume(struct pci
    if (rc) {
    scsi_remove_host(shost);
    pci_disable_device(pdev);
    + return rc;
    }
    hisi_hba->hw->phys_init(hisi_hba);
    sas_resume_ha(sha);

    \
     
     \ /
      Last update: 2020-01-22 14:30    [W:4.918 / U:0.268 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site