Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd05f05 authored by Jeff Skirvin's avatar Jeff Skirvin Committed by James Bottomley
Browse files

[SCSI] isci: The port state should be set to stopping on the last phy.



Fixes a bug where any phy removed from the port set the port
state to "stopping" - do this only when the last phy removed
from the port.

Signed-off-by: default avatarJeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 7582ba8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -294,9 +294,9 @@ static void isci_port_link_down(struct isci_host *isci_host,
					__func__, isci_device);
				set_bit(IDEV_GONE, &isci_device->flags);
			}
		}
			isci_port_change_state(isci_port, isci_stopping);
		}
	}

	/* Notify libsas of the borken link, this will trigger calls to our
	 * isci_port_deformed and isci_dev_gone functions.