Re: [PATCH v2 6/7] scsi: libsas: reset the phy address if discover failed

2019-01-31 Thread John Garry
On 31/01/2019 02:13, Jason Yan wrote: On 2019/1/31 1:36, John Garry wrote: On 30/01/2019 08:24, Jason Yan wrote: When we failed to discover the device, the phy address is still kept /s/phy/PHY/ in ex_phy. So when the next time we revalidate this phy the address and device type is the

Re: [PATCH v2 6/7] scsi: libsas: reset the phy address if discover failed

2019-01-30 Thread Jason Yan
On 2019/1/31 1:36, John Garry wrote: On 30/01/2019 08:24, Jason Yan wrote: When we failed to discover the device, the phy address is still kept in ex_phy. So when the next time we revalidate this phy the address and device type is the same, it will be considered as flutter and will not be

Re: [PATCH v2 6/7] scsi: libsas: reset the phy address if discover failed

2019-01-30 Thread John Garry
On 30/01/2019 08:24, Jason Yan wrote: When we failed to discover the device, the phy address is still kept in ex_phy. So when the next time we revalidate this phy the address and device type is the same, it will be considered as flutter and will not be discovered again. So the device will not be

[PATCH v2 6/7] scsi: libsas: reset the phy address if discover failed

2019-01-30 Thread Jason Yan
When we failed to discover the device, the phy address is still kept in ex_phy. So when the next time we revalidate this phy the address and device type is the same, it will be considered as flutter and will not be discovered again. So the device will not be brought up. Fix this by reset the phy