/* This operation is used for tearing down ports again. It must be done to every port or wide port before calling sas_port_delete.  */
void sas_port_delete_phy(struct sas_port *port, struct sas_phy *phy)
/* This operation is used for tearing down ports again. It must be done to every port or wide port before calling sas_port_delete.  */
void sas_port_delete_phy(struct sas_port *port, struct sas_phy *phy)
{
	mutex_lock(&port->phy_list_mutex);
	sas_port_delete_link(port, phy);
	list_del_init(&phy->port_siblings);
	port->num_phys--;
	mutex_unlock(&port->phy_list_mutex);
}