/* Return codes Timeout value to be used for the given mailbox command  */
int lpfc_mbox_tmo_val(struct lpfc_hba *phba, int cmd)
/* Return codes Timeout value to be used for the given mailbox command  */
int lpfc_mbox_tmo_val(struct lpfc_hba *phba, int cmd)
{
	switch (cmd) {
	case MBX_WRITE_NV:
	case MBX_UPDATE_CFG:
	case MBX_DOWN_LOAD:
	case MBX_DEL_LD_ENTRY:
	case MBX_LOAD_AREA:
	case MBX_WRITE_WWN:
	case MBX_LOAD_EXP_ROM:
		return LPFC_MBOX_TMO_FLASH_CMD;
	case MBX_SLI4_CONFIG:
		return LPFC_MBOX_SLI4_CONFIG_TMO;
	}
	return LPFC_MBOX_TMO;
}