Loading soc/swr-mstr-ctrl.c +15 −6 Original line number Diff line number Diff line Loading @@ -2289,11 +2289,14 @@ static int swrm_runtime_resume(struct device *dev) __func__, swrm->state); mutex_lock(&swrm->reslock); if (swrm->lpass_core_hw_vote) if (swrm->lpass_core_hw_vote) { ret = clk_prepare_enable(swrm->lpass_core_hw_vote); if (ret < 0) if (ret < 0) { dev_err(dev, "%s:lpass core hw enable failed\n", __func__); ret = 0; } } if ((swrm->state == SWR_MSTR_DOWN) || (swrm->state == SWR_MSTR_SSR && swrm->dev_up)) { Loading @@ -2306,7 +2309,6 @@ static int swrm_runtime_resume(struct device *dev) if (swrm_clk_request(swrm, true)) goto exit; if (!swrm->clk_stop_mode0_supp || swrm->state == SWR_MSTR_SSR) { enable_bank_switch(swrm, 0, SWR_ROW_50, SWR_MIN_COL); list_for_each_entry(swr_dev, &mstr->devices, dev_list) { ret = swr_device_up(swr_dev); if (ret == -ENODEV) { Loading @@ -2327,7 +2329,11 @@ static int swrm_runtime_resume(struct device *dev) swrm_master_init(swrm); swrm_cmd_fifo_wr_cmd(swrm, 0x4, 0xF, 0x0, SWRS_SCP_INT_STATUS_MASK_1); if (swrm->state == SWR_MSTR_SSR) { mutex_unlock(&swrm->reslock); enable_bank_switch(swrm, 0, SWR_ROW_50, SWR_MIN_COL); mutex_lock(&swrm->reslock); } } else { /*wake up from clock stop*/ swr_master_write(swrm, SWRM_MCP_BUS_CTRL_ADDR, 0x2); Loading Loading @@ -2358,11 +2364,14 @@ static int swrm_runtime_suspend(struct device *dev) mutex_lock(&swrm->force_down_lock); current_state = swrm->state; mutex_unlock(&swrm->force_down_lock); if (swrm->lpass_core_hw_vote) if (swrm->lpass_core_hw_vote) { ret = clk_prepare_enable(swrm->lpass_core_hw_vote); if (ret < 0) if (ret < 0) { dev_err(dev, "%s:lpass core hw enable failed\n", __func__); ret = 0; } } if ((current_state == SWR_MSTR_UP) || (current_state == SWR_MSTR_SSR)) { Loading Loading
soc/swr-mstr-ctrl.c +15 −6 Original line number Diff line number Diff line Loading @@ -2289,11 +2289,14 @@ static int swrm_runtime_resume(struct device *dev) __func__, swrm->state); mutex_lock(&swrm->reslock); if (swrm->lpass_core_hw_vote) if (swrm->lpass_core_hw_vote) { ret = clk_prepare_enable(swrm->lpass_core_hw_vote); if (ret < 0) if (ret < 0) { dev_err(dev, "%s:lpass core hw enable failed\n", __func__); ret = 0; } } if ((swrm->state == SWR_MSTR_DOWN) || (swrm->state == SWR_MSTR_SSR && swrm->dev_up)) { Loading @@ -2306,7 +2309,6 @@ static int swrm_runtime_resume(struct device *dev) if (swrm_clk_request(swrm, true)) goto exit; if (!swrm->clk_stop_mode0_supp || swrm->state == SWR_MSTR_SSR) { enable_bank_switch(swrm, 0, SWR_ROW_50, SWR_MIN_COL); list_for_each_entry(swr_dev, &mstr->devices, dev_list) { ret = swr_device_up(swr_dev); if (ret == -ENODEV) { Loading @@ -2327,7 +2329,11 @@ static int swrm_runtime_resume(struct device *dev) swrm_master_init(swrm); swrm_cmd_fifo_wr_cmd(swrm, 0x4, 0xF, 0x0, SWRS_SCP_INT_STATUS_MASK_1); if (swrm->state == SWR_MSTR_SSR) { mutex_unlock(&swrm->reslock); enable_bank_switch(swrm, 0, SWR_ROW_50, SWR_MIN_COL); mutex_lock(&swrm->reslock); } } else { /*wake up from clock stop*/ swr_master_write(swrm, SWRM_MCP_BUS_CTRL_ADDR, 0x2); Loading Loading @@ -2358,11 +2364,14 @@ static int swrm_runtime_suspend(struct device *dev) mutex_lock(&swrm->force_down_lock); current_state = swrm->state; mutex_unlock(&swrm->force_down_lock); if (swrm->lpass_core_hw_vote) if (swrm->lpass_core_hw_vote) { ret = clk_prepare_enable(swrm->lpass_core_hw_vote); if (ret < 0) if (ret < 0) { dev_err(dev, "%s:lpass core hw enable failed\n", __func__); ret = 0; } } if ((current_state == SWR_MSTR_UP) || (current_state == SWR_MSTR_SSR)) { Loading