msm: ipa3: Send enable force clear only for producer pipe

Enable forceclear only supported for producer pipe so
avoid sending the force clear command to consumer pipes.

Change-Id: I6c63abe68e737463b0a189bf85a92c79648ea767
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
This commit is contained in:
Ashok Vuyyuru
2020-12-23 00:27:15 +05:30
committad av Gerrit - the friendly Code Review server
förälder d069ef5432
incheckning b54510f96d

Visa fil

@@ -1200,7 +1200,7 @@ static int ipa3_stop_ul_chan_with_data_drain(u32 qmi_req_id,
goto exit;
}
/* if still stop_in_proc or not empty, activate force clear */
if (should_force_clear) {
if (should_force_clear && IPA_CLIENT_IS_PROD(ep->client)) {
result = ipa3_enable_force_clear(qmi_req_id, false,
source_pipe_bitmask, source_pipe_reg_idx);
if (result) {