Message ID | 20210621161616.77524-4-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6638:102:0:0:0:0 with SMTP id x2csp2738196jao; Mon, 21 Jun 2021 09:16:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVHvz4W7tuHBvl+nXhnTAekOpfDDi7rD3QdST0rZKRGNjHBjqQ8iozJ8QL/LnWUpzhCxUt X-Received: by 2002:a17:906:52d6:: with SMTP id w22mr12083160ejn.512.1624292208187; Mon, 21 Jun 2021 09:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624292208; cv=none; d=google.com; s=arc-20160816; b=CU0GX9hB5f2ZXTOS+/sExwa0OaYyui4x3l3Ejk9SJfl93CwLFY4agTqqO1E2i7IJlD 6aH/rjjGG4OdXTvMzdnUctMQlpGilQozX4QYpiMB7S8WSg4HK1UAMh4lJpQCK+bSYkD8 cq7xt77raFQBm6L7948LV9KWcVUmBPKjcS0YwJN4NwnyapJ6dduVeeFk6IljRmlaxDoe /TxXxlRIdpHen8HQB9lxZ93WkKcl+esRQP8/OuTJhaueWE2J6iVztD7EOUgytRIQjxz/ /02A5bFidYCbUor5LcP3zwPzaoeSxGHqF8N7VBurpcSjYaA5f2Ltu/ztD5DCyXmy5c90 WiwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VPrk83BZDsAH7WUMF1d2R72wMyUpeMl+U7nePSbVVRA=; b=GsxboGtZmrGpQceAVamTHXalUgUo0e3Ncea7itECIUGQ/RWGphFaWlzyvtnJHpTBUr ydUbrtW5que7E7RxdxbZN+5hrp3hM+Zi7ief8BsANd2kRJjjGIWtOLAGuaE4gNxqoSP4 08dcO+F5WqZmPGWHmNChJZGvX60XMgbeMjvGpoBj3NT8Q3x/T2xg0q80ikrLxicR4JYf 5K98+8lPCUn1wEzMdNrKWlW9D5o5xt7g/VtG5u1wQU/bewl8DgfPdBwiFC5iDSlWHGhv cwz9chrPMOu1GyjsEMZo7Of3ff4hFSwZvLZQJYwbN25rgQ0FzYz5sBoZg9JekABkCRHb nRbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=huDSOvIl; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-arm-msm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce16si11394493ejc.688.2021.06.21.09.16.47; Mon, 21 Jun 2021 09:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=huDSOvIl; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbhFUQTA (ORCPT <rfc822;naresh.kamboju@linaro.org> + 17 others); Mon, 21 Jun 2021 12:19:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbhFUQS4 (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Mon, 21 Jun 2021 12:18:56 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FDBC061766 for <linux-arm-msm@vger.kernel.org>; Mon, 21 Jun 2021 09:16:42 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id g4so10306802pjk.0 for <linux-arm-msm@vger.kernel.org>; Mon, 21 Jun 2021 09:16:42 -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 :mime-version:content-transfer-encoding; bh=VPrk83BZDsAH7WUMF1d2R72wMyUpeMl+U7nePSbVVRA=; b=huDSOvIlbSyFl9E2MCyw66RCSWecg0r7QPcTGiCt0NK4S7jvku4/XR+MTXiBUCzC5D XGj4uCnF5BujyrWbUXka34ykWiTdvqr9WO/vJBeUwh75OJ+aS1ROoNYCDs4a+U2YfPZz 2UqLN2zEd3Kozrmu/p0Lv0stjUyEGF77QmierNm8sgt3GAr6bCLnV9NODBT62uwVnU4w J4I/ibufHSE8yw90Eri1Rpz7iXTXnBIvoXpWR+Kh107IAHREzrxjzPxvjtIXPsMoXtCW KTpWsvnxx9+AXULJBY8gPv2ElINNGF1V/Oevr7pu2gA4A17hGafpqUwhtCTYnm5OtH+g e+TQ== 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:mime-version:content-transfer-encoding; bh=VPrk83BZDsAH7WUMF1d2R72wMyUpeMl+U7nePSbVVRA=; b=Zo6/GfzT8lJQkdYbGv521KFGaOeQRXDn1PpbUUJHXF4MBcPn0BC26znCYAyzKIcCc4 PhWeuhCG+4ol8/L9BxIsG9/iW3jpc7600Pu0bKgQWKGxszZjko9pxuf7RKAaIYNOs45J MvODONd3qh8wIjP/RWTDyjcRNjR6nBW0ycavLxAjnWSau5TOj19WNtF9sooFHraiqbH8 EeJ7JoT613bNGTVVLxUpGeykw6svbRzzi44cScBzzh1ld9M4d0SDQ9cWsPci8VjsmpPF SI/8mMGJbb8gJadOF2NNqevgY8OXPPJA9Kj9EAia7uQvXwC5jG5PcNTWS5oxz/J+Fzeq 0l7A== X-Gm-Message-State: AOAM531G2E/xpmRpT7PBHJV5HABB1rtsY+O2mfGQfF2zPdhTGDKu5R/l 7Ol+Ew08K26DGtofXwLWjR45 X-Received: by 2002:a17:90a:8c4:: with SMTP id 4mr38123055pjn.82.1624292202003; Mon, 21 Jun 2021 09:16:42 -0700 (PDT) Received: from localhost.localdomain ([120.138.13.116]) by smtp.gmail.com with ESMTPSA id k88sm10734730pjk.15.2021.06.21.09.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 09:16:41 -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, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, Baochen Qiang <bqiang@codeaurora.org>, stable@vger.kernel.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH 3/8] bus: mhi: Wait for M2 state during system resume Date: Mon, 21 Jun 2021 21:46:11 +0530 Message-Id: <20210621161616.77524-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621161616.77524-1-manivannan.sadhasivam@linaro.org> References: <20210621161616.77524-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
MHI patches for v5.14
|
expand
|
diff --git a/drivers/bus/mhi/core/pm.c b/drivers/bus/mhi/core/pm.c index 704a5e225097..bbf6cd04861e 100644 --- a/drivers/bus/mhi/core/pm.c +++ b/drivers/bus/mhi/core/pm.c @@ -926,6 +926,7 @@ int mhi_pm_resume(struct mhi_controller *mhi_cntrl) ret = wait_event_timeout(mhi_cntrl->state_event, mhi_cntrl->dev_state == MHI_STATE_M0 || + mhi_cntrl->dev_state == MHI_STATE_M2 || MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state), msecs_to_jiffies(mhi_cntrl->timeout_ms));