Message ID | 20200928040951.18207-6-manivannan.sadhasivam@linaro.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=VSLf=DF=vger.kernel.org=linux-arm-msm-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94379139A for <patchwork-linux-arm-msm@patchwork.kernel.org>; Mon, 28 Sep 2020 04:10:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7B1D5239A1 for <patchwork-linux-arm-msm@patchwork.kernel.org>; Mon, 28 Sep 2020 04:10:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uj70iwN7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726595AbgI1EKv (ORCPT <rfc822;patchwork-linux-arm-msm@patchwork.kernel.org>); Mon, 28 Sep 2020 00:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbgI1EKv (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Mon, 28 Sep 2020 00:10:51 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A69BC0613CE for <linux-arm-msm@vger.kernel.org>; Sun, 27 Sep 2020 21:10:51 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id l126so8155659pfd.5 for <linux-arm-msm@vger.kernel.org>; Sun, 27 Sep 2020 21:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mLM1ooiBRvHKnVHboD9nW5AfyUuBhafQkkCUD3MREGQ=; b=uj70iwN7Om8mBXDBHTyn3n9uBZav9OQBi2ibF4cPRnAJv1Fgmjp9d0PA6yKsUNCo8p Zml8+Jr/GHooh+CAQ62UnpDtJprVYnoQJvt9i/W9gvJMCjmg9Zgb8i1CgpZV78PNZgar p9F3oueAZEnQdSOBNtQjH0YdD1YAGs6JQcs/pcpqNcw3s2p+PWQGYROh2eMBgJDJ3Vu+ smGF3vvG+kv/tTi6lEoaGsKQ9h3dtE4Uj2JSDZ/FtYMFlblSPE0IhtSrCY8Bo98IBZad S05NDWDclJIxPKPpbKFojFRRfq10cLNTh6LD2Osnyck3cAGVwRKUPzKFFYjXImFN8dih /W/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mLM1ooiBRvHKnVHboD9nW5AfyUuBhafQkkCUD3MREGQ=; b=mMbhpDX/n1Ykh5XqS+Hx/QctC+O8MxyZ2g22MQMJezj3HGA1H2idWSRSIGX+IHRvJ8 zlIU+CIf90CQ1JVs5QaNI9/oVlVJYBinP3TJXP5D+XH5m8i3HRLB9/xS5MWeJPGN1QCV hR4G38DwuNVIkZ7rYRlaEmDkQpe0tOVza2PhOziFKuSPydmb0+lBFsENNGmq/+NBT1Mr y0mC4jpt7JszKwpT6nIGrklLCcoYfux0+u9uZuHQ8TctvFetdR+NfZl1op4wLb/aCvc7 eqVorIkHm8ltVTEPBjDAo+UFg664ryXAyjuGcXd+5lsz1Rc7TQFNfverVUVhS0dPv+cy 1eCA== X-Gm-Message-State: AOAM5305z/iMM74UQYGzNxUWY2Vf7FckTHGnMsBi7087AP9L+Y8K2yL6 F/am8BjOTPMFi9H/mDCgiKH0 X-Google-Smtp-Source: ABdhPJymDsdfy18yONaUhpTsOEGUG1/Au6IP4UUUgdj7FzjnwfJppAc1PWzIrjCdRn1IjWFRxHaMgw== X-Received: by 2002:a63:e655:: with SMTP id p21mr7539114pgj.420.1601266250974; Sun, 27 Sep 2020 21:10:50 -0700 (PDT) Received: from Mani-XPS-13-9360.localdomain ([2409:4072:6003:40df:7c40:5a87:eb86:87b0]) by smtp.gmail.com with ESMTPSA id n21sm8306322pgl.7.2020.09.27.21.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 21:10:50 -0700 (PDT) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: gregkh@linuxfoundation.org Cc: hemantk@codeaurora.org, bbhatt@codeaurora.org, linux-arm-msm@vger.kernel.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH v2 05/21] bus: mhi: core: Trigger host resume if suspended during mhi_device_get() Date: Mon, 28 Sep 2020 09:39:35 +0530 Message-Id: <20200928040951.18207-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200928040951.18207-1-manivannan.sadhasivam@linaro.org> References: <20200928040951.18207-1-manivannan.sadhasivam@linaro.org> Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
MHI changes for v5.10
|
expand
|
diff --git a/drivers/bus/mhi/core/pm.c b/drivers/bus/mhi/core/pm.c index b227d415e937..27bb471c8f4e 100644 --- a/drivers/bus/mhi/core/pm.c +++ b/drivers/bus/mhi/core/pm.c @@ -1112,6 +1112,9 @@ void mhi_device_get(struct mhi_device *mhi_dev) mhi_dev->dev_wake++; read_lock_bh(&mhi_cntrl->pm_lock); + if (MHI_PM_IN_SUSPEND_STATE(mhi_cntrl->pm_state)) + mhi_trigger_resume(mhi_cntrl); + mhi_cntrl->wake_get(mhi_cntrl, true); read_unlock_bh(&mhi_cntrl->pm_lock); }