/* Start in offline state - awaiting MS to send start.  */
static void bfa_fcs_port_fdmi_sm_offline(struct bfa_fcs_port_fdmi_s *fdmi, enum port_fdmi_event event)
/* Start in offline state - awaiting MS to send start.  */
static void bfa_fcs_port_fdmi_sm_offline(struct bfa_fcs_port_fdmi_s *fdmi, enum port_fdmi_event event)
{
	struct bfa_fcs_port_s *port = fdmi->ms->port;
	bfa_trc(port->fcs, port->port_cfg.pwwn);
	bfa_trc(port->fcs, event);
	fdmi->retry_cnt = 0;
	switch (event) {
	case FDMISM_EVENT_PORT_ONLINE:
		if (port->vport) {
			bfa_sm_set_state(fdmi,
					 bfa_fcs_port_fdmi_sm_sending_rprt);
			bfa_fcs_port_fdmi_send_rprt(fdmi, NULL);
		} else {
			bfa_sm_set_state(fdmi,
					 bfa_fcs_port_fdmi_sm_sending_rhba);
			bfa_fcs_port_fdmi_send_rhba(fdmi, NULL);
		}
		break;
	case FDMISM_EVENT_PORT_OFFLINE:
		break;
	default:
		bfa_assert(0);
	}
}