Message ID | 20200921160815.28071-7-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Nby1=C6=vger.kernel.org=linux-arm-msm-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 469CFC43466 for <linux-arm-msm@archiver.kernel.org>; Mon, 21 Sep 2020 16:09:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0662216C4 for <linux-arm-msm@archiver.kernel.org>; Mon, 21 Sep 2020 16:09:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RTlt+ko6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbgIUQJ5 (ORCPT <rfc822;linux-arm-msm@archiver.kernel.org>); Mon, 21 Sep 2020 12:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgIUQJ5 (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Mon, 21 Sep 2020 12:09:57 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B775C061755 for <linux-arm-msm@vger.kernel.org>; Mon, 21 Sep 2020 09:09:57 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id z18so9678433pfg.0 for <linux-arm-msm@vger.kernel.org>; Mon, 21 Sep 2020 09:09:57 -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=RTlt+ko60rK2/zapD8GKHlZvzBuw1IGAKR8ZEb2qajV5uohv9e9M77T+SlQGPWBnxV dOzDqtx6vXcsSro7q5q6lQhS2gsLQEH6TAt6jcWc09Uwvj4aDKHlrpXb+K0roAtRKV17 HqC4djsJ3cOGTI7UdKjOsf0HS2nJoTRi6emifrbWYvwjvTCnJENFdrkNxh2HI9c7Di5f M3J+KJjssFOFv2wBnk6DcQ83ICxaSw5cyAikweh9EtCTOH+UsDaiVNJQqHF/JTrSU2l0 UQSDrjZVgeK0uIoh72jfs/2FUuzAsmQ4pKgbd2EFEPGMh7Ima6r1YeY5eZOKMb4A3eP1 tWkg== 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=tSO61pPrHg6PFCj29OKGGgOkgaE7LoKs2fo/NKGTyJ6TM3osynLCIKcz/MmWXk5YgH pGnsl9kHESJltEPM8BXcvNSY6uckt50Q4UyX+qWlxYHG/mDvej7Rvgrp6BBicRho8tA4 jBaFL86DusSIFAt2nap5ehwDqLZitcR7hl2tUIDcmP9d0D7YKSjlP8ddZA27Kp9RGaXp aC0zjMYG++OPALs9K/UdKGJh4sF1e5/f5YksRAi8yD9fuD62VdkLJSTONqPRD0XcfeFb hJ+j0ATeOOT5yJk56DSejddBi704I9efFs6JmMoBUuN9mys0s89WlhbFQoZtAoq5nv9d y0xQ== X-Gm-Message-State: AOAM532TDwJdu5ft01I/W6fiUcanP7iZ7iB4g9SCfknQi5HQv7YuvBCE VJ5dHaecyyajd+9iin2KjQph X-Google-Smtp-Source: ABdhPJxiPuI+p4Gw7kYi2ZVYeBdeqDIkwnTTAcKk8jfDI9JInlNlEiN3rqVRTgui3onFEznWXs+LMQ== X-Received: by 2002:a63:4a19:: with SMTP id x25mr308949pga.56.1600704596746; Mon, 21 Sep 2020 09:09:56 -0700 (PDT) Received: from Mani-XPS-13-9360.localdomain ([2409:4072:6d03:bd12:1004:2ccf:6900:b97]) by smtp.gmail.com with ESMTPSA id f4sm9204577pgr.68.2020.09.21.09.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 09:09:55 -0700 (PDT) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: gregkh@linuxfoundation.org Cc: hemantk@codeaurora.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Subject: [PATCH 05/18] bus: mhi: core: Trigger host resume if suspended during mhi_device_get() Date: Mon, 21 Sep 2020 21:38:02 +0530 Message-Id: <20200921160815.28071-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921160815.28071-1-manivannan.sadhasivam@linaro.org> References: <20200921160815.28071-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); }