Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2651182pxj; Mon, 31 May 2021 07:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz+B0jharnTaliThmi5MoDoweYnLilj/sM1ZM97/IgUMVD0LhvPKahJ3QyR2v91eg+2GxU X-Received: by 2002:a92:d80a:: with SMTP id y10mr7784778ilm.254.1622471099714; Mon, 31 May 2021 07:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471099; cv=none; d=google.com; s=arc-20160816; b=oL/yljohIPyhneYlHxgme7EuBY3r5wkfUjvJ2legp5EVRIbOyBiliuFVYykC9CeFfS 3dqO8cFkxWT1bThr74RgGtNnGT7Fvr7B3zPf6YhvOy7pmtJuFUSQ6hjpstjGWIvxcPnN xXhBnRi0BaZnFHpJC4YCL8pESN2KRIshwU8xw+gxTBVKnlmgK7oSS9LUZzwSKlMwlF6o uvglVsJ7uMNwTYf0L8p6TpbRw7PgwhPxzmbnTyXLcyBHwxl3juj9pEwWKosM+uGJc8c1 t1q0X9gY0DHw388dT43SuGlKlnVDfofYnfY7Im4CIade6hz+KVdJIWyiU+16VN+BEQJz fVTQ== 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=njXd6useg44z6dMc9TnHyzir1mEZNVo5PDkh70mRznvLjaaiMHGonfqZL/FLUR12Ao pOvR3EkZlhnhlGNbDzlW+ZDn6u4NNvwr2ij4Kw5tXIDudO+zxoofV5OSfLslYOHluQgZ ANC5PBR39B8w95fikYu+r9RnOH9x8d4qviGQPjS1PB8KU8C5LBSFDDRod/LK0BIhYOoJ B/l9kOCStDJP5FvyzO4AouQ0z58pbkTdnE+3TpbD5ujIgxBJ5ldr793i/VeIinRZ/jP7 P3Qcn25nLS50iscME33USU9z2YCnOzgOVgponbnxbfqvZwCROWu6NmvS5KKR29s/OMAU czDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=corREL44; 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 y17si14255664jak.57.2021.05.31.07.24.46; Mon, 31 May 2021 07:24:59 -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=corREL44; 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 S233694AbhEaOZy (ORCPT + 99 others); Mon, 31 May 2021 10:25:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:55176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232359AbhEaNvZ (ORCPT ); Mon, 31 May 2021 09:51:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7771617ED; Mon, 31 May 2021 13:32:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467946; bh=L2uOL+Q8pAYqKVL/7z/INd8oC9HxuuO7OuGD0KrWVGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=corREL4437hiXXF/3meaEcNKELM0CbReybkuZXAHtFknLAu0gkkIMlwT3pPZrw1NS 4mMsaK5daKQrM67P1qi//wXdX0Hn+sB63/0hDMC7jBpZOqLOwTbNLNhr71fbfHy6fl w/X1eqff//wgJUhzfofVMPKOYA+/LeSFrqAoZfMU= 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.10 059/252] mei: request autosuspend after sending rx flow control Date: Mon, 31 May 2021 15:12:04 +0200 Message-Id: <20210531130659.981923822@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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;