• Xiaofei Tan's avatar
    scsi: hisi_sas: Terminate STP reject quickly for v2 hw · 31709548
    Xiaofei Tan authored
    For v2 hw, STP link from target is rejected after host reset because of a
    SoC bug. The STP reject will be terminated after we have sent IO from each
    PHY of a port.
    
    This is not an problem before, as we don't need to setup STP link from
    target immediately after host reset. But now, it is.  Because we want to
    send soft-reset immediately after host reset.
    
    In order to terminate STP reject quickly, this patch send ATA reset command
    through each PHY of a port. Notes: ATA reset command don't need target's
    response.
    
    Besides, we do abort dev for each device before terminating STP reject.
    This is a quirk of v2 hw.
    Signed-off-by: default avatarXiaofei Tan <tanxiaofei@huawei.com>
    Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    31709548
hisi_sas_main.c 63.4 KB