soc: swr-mstr-ctrl: reset PCM_DP_OUT/IN count when SSR

during SSR, swrm_disable_ports() is not called so the pcm_enable_count
never decreased. Reset the count to 0 when SSR

Change-Id: I937dd309ab9fb2c28c0962053cd1632c891fb598
Signed-off-by: Junkai Cai <junkai@quicinc.com>
This commit is contained in:
Yuhui Zhao
2021-10-08 16:01:24 -07:00
committed by Gerrit - the friendly Code Review server
parent dbc8b3c1e1
commit 39e7f936b4

View File

@@ -1700,6 +1700,8 @@ static int swrm_slvdev_datapath_control(struct swr_master *master, bool enable)
}
clear_bit(DISABLE_PENDING, &swrm->port_req_pending);
swrm_cleanup_disabled_port_reqs(master);
/* reset enable_count to 0 in SSR if master is already down */
swrm->pcm_enable_count = 0;
if (!swrm_is_port_en(master)) {
dev_dbg(&master->dev, "%s: pm_runtime auto suspend triggered\n",
__func__);