Merge "msm: ipa: Add default cases for gsi and ipa hw version"

This commit is contained in:
qctecmdr
2020-07-07 06:55:32 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 7 additions and 0 deletions

View File

@@ -887,6 +887,9 @@ static uint32_t gsi_get_max_channels(enum gsi_ver ver)
GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_BMSK) >>
GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_CH_PER_EE_SHFT;
break;
default:
GSIERR("GSI version is not supported %d\n", ver);
break;
}
GSIDBG("max channels %d\n", reg);
@@ -958,6 +961,9 @@ static uint32_t gsi_get_max_event_rings(enum gsi_ver ver)
GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_BMSK) >>
GSI_V2_9_EE_n_GSI_HW_PARAM_2_GSI_NUM_EV_PER_EE_SHFT;
break;
default:
GSIERR("GSI version is not supported %d\n", ver);
break;
}
GSIDBG("max event rings %d\n", reg);

View File

@@ -5958,6 +5958,7 @@ int ipa3_init_mem_partition(enum ipa_hw_type type)
case IPA_HW_v3_5:
case IPA_HW_v3_5_1:
case IPA_HW_v4_0:
default:
IPAERR("unsupported version %d\n", type);
return -EPERM;
}