From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 D505DC4363C for ; Sun, 4 Oct 2020 11:58:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9E7C9207BC for ; Sun, 4 Oct 2020 11:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601812715; bh=eGeLXq2oBRIBtPbfk0EMttQErEgkaJEYNNUobzcUikQ=; h=Subject:To:Cc:From:Date:List-ID:From; b=FYBbzX0yHEWDAvoIx6BAZBIWyBArWXV5hYXx8JMwPXKjU1b8LrO7kwl/HMtR4OMuQ Cr4NlFcPzVCOFRzmBOhLn5FsOdr0NudolCd4bkNKESQCygixwQxvTLHbLVhtnA+3SN d2jTxpc/aiAAZKSQ4ZIKhs7vfkZjLa04++DNuV0g= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbgJDL6f (ORCPT ); Sun, 4 Oct 2020 07:58:35 -0400 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]:55097 "EHLO forward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbgJDL6f (ORCPT ); Sun, 4 Oct 2020 07:58:35 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id A3C831940E6D; Sun, 4 Oct 2020 07:58:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 04 Oct 2020 07:58:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=qMiBLj rcRprgqgJdo33b9+nTL6+4/Ep1ekoopcxetPA=; b=Dbk7vtggIANVVpDF660X3Z +P014lS2BYWHtcDfidO81O1RFAVTWBcaRj18y1hagwWXQMyT/eiFCliJrwfQKtDM P3u2gLj4LcL7Rh3UsyAIuTgN1CKlXdUGOdECjclf3s+xJd0EKjEUff3Yq3nqeTs/ 3fBqRQTtnKu24/CVCcxxYqbEBpn+vc20SGK1SyqpsF7Hd6IrIYHu/5xDHrhJsEY4 dkm9hBSLujqGJyAoAGSu1tVoDt4+PkGccJVkEt+LseZvtHotvoK/fzR+/r7qHNta dEcDGrAyrqJYN5yrRJYQzw0a3DS0l9R4UjqFKjJbhXSVotvbKH5WDrt+BefL+6Vw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedtgdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd ejnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucggtffrrghtthgvrhhnpeehgefguedvheejffeiheehuedvjeefhfegvefggedvue dufeevgeffuedvteelueenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghr ufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtg homh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 3F3713064610; Sun, 4 Oct 2020 07:58:34 -0400 (EDT) Subject: FAILED: patch "[PATCH] i2c: i801: Exclude device from suspend direct complete" failed to apply to 5.4-stable tree To: jdelvare@suse.de, volker.ruemelin@googlemail.com, wsa@kernel.org Cc: From: Date: Sun, 04 Oct 2020 13:59:13 +0200 Message-ID: <1601812753201172@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 5.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 845b89127bc5458d0152a4d63f165c62a22fcb70 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 10 Sep 2020 11:57:08 +0200 Subject: [PATCH] i2c: i801: Exclude device from suspend direct complete optimization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, PCI drivers with runtime PM enabled will skip the calls to suspend and resume on system PM. For this driver, we don't want that, as we need to perform additional steps for system PM to work properly on all systems. So instruct the PM core to not skip these calls. Fixes: a9c8088c7988 ("i2c: i801: Don't restore config registers on runtime PM") Reported-by: Volker RĂ¼melin Signed-off-by: Jean Delvare Cc: stable@vger.kernel.org Signed-off-by: Wolfram Sang diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index ebb4c0b03057..bffca729e1c7 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -1917,6 +1917,7 @@ static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) pci_set_drvdata(dev, priv); + dev_pm_set_driver_flags(&dev->dev, DPM_FLAG_NO_DIRECT_COMPLETE); pm_runtime_set_autosuspend_delay(&dev->dev, 1000); pm_runtime_use_autosuspend(&dev->dev); pm_runtime_put_autosuspend(&dev->dev);