Commit 1f4fe89c authored by Jeff Skirvin's avatar Jeff Skirvin Committed by James Bottomley

[SCSI] libsas: Remove redundant phy state notification calls.

In the case of an explicit sas_phy_enable call to disable a phy,
the LLDD provides the calls to sas_phy_disconnected and the

NOTE: This assumes that the lldd(s) generate the notification, which
appears to be the case, but only verfied on isci.
Signed-off-by: default avatarJeff Skirvin <>
Signed-off-by: default avatarDan Williams <>
Signed-off-by: default avatarJames Bottomley <>
parent 2a559f4b
......@@ -268,11 +268,8 @@ static int sas_phy_enable(struct sas_phy *phy, int enable)
if (enable)
ret = transport_sas_phy_reset(phy, 0);
else {
sas_ha->notify_phy_event(asd_phy, PHYE_LOSS_OF_SIGNAL);
ret = i->dft->lldd_control_phy(asd_phy, cmd, NULL);
} else {
struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
struct domain_device *ddev = sas_find_dev_by_rphy(rphy);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment