/* fc_lport_disc_callback() - Callback for discovery events @lport: The local port receiving the event @event: The discovery event  */
void fc_lport_disc_callback(struct fc_lport *lport, enum fc_disc_event event)
/* fc_lport_disc_callback() - Callback for discovery events @lport: The local port receiving the event @event: The discovery event  */
void fc_lport_disc_callback(struct fc_lport *lport, enum fc_disc_event event)
{
	switch (event) {
	case DISC_EV_SUCCESS:
		FC_LPORT_DBG(lport, "Discovery succeeded\n");
		break;
	case DISC_EV_FAILED:
		printk(KERN_ERR "host%d: libfc: "
		       "Discovery failed for port (%6x)\n",
		       lport->host->host_no, fc_host_port_id(lport->host));
		mutex_lock(&lport->lp_mutex);
		fc_lport_enter_reset(lport);
		mutex_unlock(&lport->lp_mutex);
		break;
	case DISC_EV_NONE:
		WARN_ON(1);
		break;
	}
}