Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2727524pxj; Mon, 31 May 2021 09:13:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKKLhnaYQPbbf8ELd0HtVrT/EZvXvUechva7EXUhGXmusO8U89IkRt/52yEy9XSRkBqCYC X-Received: by 2002:a05:6e02:12ac:: with SMTP id f12mr5837677ilr.207.1622477612382; Mon, 31 May 2021 09:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622477612; cv=none; d=google.com; s=arc-20160816; b=a8/kPvGAYEPOdzbHui6nnlNY4aRGYvzIdyRKvfCS1TJWASLFg1U+tQUGVxnOEQbbQU 350fnUinaNDaumF+3q5QBy/Trhvyy34FjsIxvR4xQ2YX/BQahXv7bM4yzSAH35hZrmeK dkhh0r/7bFA4o7HH8V8+55Y24ZQWXSG/MwwFB1Y2Ev1eU32k1j/6axV+BsvUX1ipCpwz z3nE3w78RxxO7gi9YbNjxKHVzMSu9iW7+tFbg815x8jeW60G/MOzbj2pgNkb99iuiqLN rjzoFu0YPsjSSUH0C6/6J0vf1P426vXmy8HDUlxoSj8VkuK+Yx8iALQLFn/We6H/8tWA 4oaw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z1PEhwwtqm6FMhb8nZIPKh+SoOBSHk7JQHBt0MPaLxs=; b=ITxuJ6Tz2fSQOUWBYXCD1a71KBdUtRdzzdMJsu4jyQOtZLG08g1PcYkd3EEJAAP+wu dSpEREgt/eIoXJ/FdVpir3+phSFrwP/ksmgCDe1rtm27fZq76Ad+dwyjsHBGrgS2xacv W9rfAG5M7DcU0+tIo4Wu4hz6ezbij6YEyVEOCTgaBy3UcBMHZnRvt7KoENGdQ/8dLbAp CqMs8+ylifvQnU3uzktXGp84udIYrcpsTbO/1gUyirvTKz8JPD9OL0/xzA3q2SgHbAER OZsFnVl+oJifpmAuiFrHMhLkRmdaVxCfK34mkCLXezXIXvLcN/d8fSvcVVT0nQudWOpT 2xww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o6r2jWvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p12si13551925ilq.5.2021.05.31.09.13.18; Mon, 31 May 2021 09:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=o6r2jWvS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232358AbhEaQMV (ORCPT + 99 others); Mon, 31 May 2021 12:12:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233851AbhEaOhg (ORCPT ); Mon, 31 May 2021 10:37:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 972DE61C54; Mon, 31 May 2021 13:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469110; bh=L2uOL+Q8pAYqKVL/7z/INd8oC9HxuuO7OuGD0KrWVGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o6r2jWvS9j46pTReW6olY+dxEQOt1tSHt8oZcSfCL44o+BT2kdY6B6VcPHB5MQWqo 5n7E4UsZR4PEqGIUPQilm6IItudsuFd2s6+VuAoTpH0i4aP7adNkkALmO9jJMTJpkt 5w81PXbmhPPXUTyR7/lgjQUiaVuHbeIFtzzneXfg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Usyskin , Tomas Winkler Subject: [PATCH 5.12 074/296] mei: request autosuspend after sending rx flow control Date: Mon, 31 May 2021 15:12:09 +0200 Message-Id: <20210531130706.334192311@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Usyskin commit bbf0a94744edfeee298e4a9ab6fd694d639a5cdf upstream. A rx flow control waiting in the control queue may block autosuspend. Re-request autosuspend after flow control been sent to unblock the transition to the low power state. Cc: Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20210526193334.445759-1-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/interrupt.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c @@ -277,6 +277,9 @@ static int mei_cl_irq_read(struct mei_cl return ret; } + pm_runtime_mark_last_busy(dev->dev); + pm_request_autosuspend(dev->dev); + list_move_tail(&cb->list, &cl->rd_pending); return 0;