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 CB331C4363C for ; Sun, 4 Oct 2020 11:58:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 755BB20781 for ; Sun, 4 Oct 2020 11:58:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601812708; bh=2j/e8yxI4W4UXYJZDPLAmT8P2ONMJYDwv4mQYWaSf1s=; h=Subject:To:Cc:From:Date:List-ID:From; b=UiN5Yjlqvwv3fokbjFDq5/lE4UXeg1bF92upgMwnfp6UBO36A/RNNU1zcY55W766E +nN8kSIcLvfVY0oE/vfGrVMLUe5Ki7Vl0sNwPBU/qaveHHKHcln9WIMLgw3YXcabyy /8/MkzCd2IWW9l9MyHCFFlVhp6Nssr/Szq9n5z/s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725907AbgJDL61 (ORCPT ); Sun, 4 Oct 2020 07:58:27 -0400 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]:35627 "EHLO forward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbgJDL61 (ORCPT ); Sun, 4 Oct 2020 07:58:27 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id 3A0311940E31; Sun, 4 Oct 2020 07:58:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 04 Oct 2020 07:58:26 -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=5upEM1 hztfJ9m9e/Qhvd6ksfVYorYxKmTC2VVA0VTv8=; b=EGUH8eoDGNjf0GJCLsuzLg 8FECgCbyWxTDPHVMoOoNNgQwfiEck0/A3sCnQFiVboUCHX/KlNdHyAaAt6U1lJj1 VgKhyQAqJQEZE9tcJWirpXTdUt5qCSUYxWol2qyi7lVTZUCGmGkW+IkpMY4gJyVw xlmGXMrQ0loia/ln+mgLKq8Hdl0R8XuPpais0eBm+7s9PFZKKxL4wjMZefm0X3CU QCyFtngSoexmA37hKOdIvFP8mK/v7OIQ0VBQdcasEZXWOkyvTPTkSzPQdU6KnN4D pPWspnx4yrVHLre4s2ghdZ0Vqgb8ly0VmepdqZ5GrVG9j8wRKH7eIjHyvYCi8vWg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedtgdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd ejnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucggtffrrghtthgvrhhnpeehgefguedvheejffeiheehuedvjeefhfegvefggedvue dufeevgeffuedvteelueenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtg 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 9B966328005A; Sun, 4 Oct 2020 07:58:25 -0400 (EDT) Subject: FAILED: patch "[PATCH] i2c: i801: Exclude device from suspend direct complete" failed to apply to 4.19-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: <160181275362155@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 4.19-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);