]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: send three identify before phy up
authorJohn Garry <john.garry@huawei.com>
Tue, 6 Sep 2016 15:36:25 +0000 (23:36 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Sep 2016 16:54:18 +0000 (12:54 -0400)
commit93d4f4ca99eb31c3525a3662c9fa4c19468c2185
tree69d7bc84cab8c009f2c0f62eb1fdf3a790c9f99d
parent7f8d269a2b6efe404e0d3a04d2ddb94938d211d8
scsi: hisi_sas: send three identify before phy up

When the v2 hw is attached with many disks through an expander, there
may be OOB reset resulting in a PHY going down after the speed is
negotiated (very low probability).

This issue is resolved by modifying the link control registers to send
three identify frames before the PHY is ready (according to 6.10.3.3.2
in SAS 3.0 spec) and close ready when the PHY is down.

Signed-off-by: NengLong Zhao <zhaonenglong@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c