Skip to content

Commit 1f4fe89

Browse files
Jeff SkirvinJames Bottomley
authored andcommitted
[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 PHYE_LOSS_OF_SIGNAL event. NOTE: This assumes that the lldd(s) generate the notification, which appears to be the case, but only verfied on isci. Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent 2a559f4 commit 1f4fe89

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/scsi/libsas/sas_init.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,8 @@ static int sas_phy_enable(struct sas_phy *phy, int enable)
268268

269269
if (enable)
270270
ret = transport_sas_phy_reset(phy, 0);
271-
else {
272-
sas_phy_disconnected(asd_phy);
273-
sas_ha->notify_phy_event(asd_phy, PHYE_LOSS_OF_SIGNAL);
271+
else
274272
ret = i->dft->lldd_control_phy(asd_phy, cmd, NULL);
275-
}
276273
} else {
277274
struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
278275
struct domain_device *ddev = sas_find_dev_by_rphy(rphy);

0 commit comments

Comments
 (0)