msm: ipa: make changes to avoid allocating userdata for WDI channels
WDI channels do not require userdata. Avoid allocating userdata for new WDI protocols as otherwise allocations might fail due to large allocation size resulting in pipe setup failure. Change-Id: I7630a9c5b450937b264cdeb4b45ace70fd160be3 Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
This commit is contained in:

committato da
Gerrit - the friendly Code Review server

parent
d6804f5960
commit
e294f01cfe
@@ -2929,7 +2929,8 @@ int gsi_alloc_channel(struct gsi_chan_props *props, unsigned long dev_hdl,
|
||||
|
||||
/* For IPA offloaded WDI channels not required user_data pointer */
|
||||
if (props->prot != GSI_CHAN_PROT_WDI2 &&
|
||||
props->prot != GSI_CHAN_PROT_WDI3)
|
||||
props->prot != GSI_CHAN_PROT_WDI3 &&
|
||||
props->prot != GSI_CHAN_PROT_WDI3_V2)
|
||||
user_data_size = props->ring_len / props->re_size;
|
||||
else
|
||||
user_data_size = props->re_size;
|
||||
|
Fai riferimento in un nuovo problema
Block a user