Loading drivers/platform/msm/mhi_dev/mhi.c +3 −2 Original line number Diff line number Diff line Loading @@ -3158,6 +3158,8 @@ int mhi_dev_write_channel(struct mhi_req *wreq) } usr_buf_remaining = wreq->len; handle_client = wreq->client; ch = handle_client->channel; mutex_lock(&mhi_ctx->mhi_write_test); if (atomic_read(&mhi_ctx->is_suspended)) { Loading @@ -3165,6 +3167,7 @@ int mhi_dev_write_channel(struct mhi_req *wreq) * Expected usage is when there is a write * to the MHI core -> notify SM. */ mhi_log(MHI_MSG_INFO, "Wakeup by chan:%d\n", ch->ch_id); rc = mhi_dev_notify_sm_event(MHI_DEV_EVENT_CORE_WAKEUP); if (rc) { pr_err("error sending core wakeup event\n"); Loading @@ -3187,8 +3190,6 @@ int mhi_dev_write_channel(struct mhi_req *wreq) return -ENODEV; } handle_client = wreq->client; ch = handle_client->channel; ring = ch->ring; Loading Loading
drivers/platform/msm/mhi_dev/mhi.c +3 −2 Original line number Diff line number Diff line Loading @@ -3158,6 +3158,8 @@ int mhi_dev_write_channel(struct mhi_req *wreq) } usr_buf_remaining = wreq->len; handle_client = wreq->client; ch = handle_client->channel; mutex_lock(&mhi_ctx->mhi_write_test); if (atomic_read(&mhi_ctx->is_suspended)) { Loading @@ -3165,6 +3167,7 @@ int mhi_dev_write_channel(struct mhi_req *wreq) * Expected usage is when there is a write * to the MHI core -> notify SM. */ mhi_log(MHI_MSG_INFO, "Wakeup by chan:%d\n", ch->ch_id); rc = mhi_dev_notify_sm_event(MHI_DEV_EVENT_CORE_WAKEUP); if (rc) { pr_err("error sending core wakeup event\n"); Loading @@ -3187,8 +3190,6 @@ int mhi_dev_write_channel(struct mhi_req *wreq) return -ENODEV; } handle_client = wreq->client; ch = handle_client->channel; ring = ch->ring; Loading