net: ipa: change an IPA v5.0 memory requirement
Don't require IPA v5.0 to have a STATS_TETHERING memory region. Downstream defines its size to 0, so it apparently is unused. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5783c68a25
commit
5ba5faa2e2
|
@ -198,9 +198,12 @@ static bool ipa_mem_id_required(struct ipa *ipa, enum ipa_mem_id mem_id)
|
||||||
|
|
||||||
case IPA_MEM_PDN_CONFIG:
|
case IPA_MEM_PDN_CONFIG:
|
||||||
case IPA_MEM_STATS_QUOTA_MODEM:
|
case IPA_MEM_STATS_QUOTA_MODEM:
|
||||||
case IPA_MEM_STATS_TETHERING:
|
|
||||||
return ipa->version >= IPA_VERSION_4_0;
|
return ipa->version >= IPA_VERSION_4_0;
|
||||||
|
|
||||||
|
case IPA_MEM_STATS_TETHERING:
|
||||||
|
return ipa->version >= IPA_VERSION_4_0 &&
|
||||||
|
ipa->version != IPA_VERSION_5_0;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false; /* Anything else is optional */
|
return false; /* Anything else is optional */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue