Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp953893ybg; Mon, 27 Jul 2020 04:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0JMHLQlx/LUYr1Hl7mRveOcolBCVFAaef1A6lbKDEdiC/UyUiGS1TW3xA/dsXq2rBDrbk X-Received: by 2002:a05:6402:6c8:: with SMTP id n8mr5497463edy.195.1595848380666; Mon, 27 Jul 2020 04:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848380; cv=none; d=google.com; s=arc-20160816; b=gg/UwMCv12C8z8TzmCFAfYjyp+VRsQ/wrPsl9EhB4UL1IXup+wv124kwuU6OJtGhze di6rbPPi726d7biiFY0xlx3AxNFE8M+4aMMzbWqM6Vyi0mxVXi/YWTz32OWAcU9z7WKc fAMJ7bBGI2hFQm1P6QjW6nQUVkSSNaoP/qc9EwyhzjOrYV/ETuMkL+aABDKHTZ41CZCP I8T8WZCes7/DJMstPuTy5W7M9plrWLj5HBPgOoXazzk3PhbNTOT/MxZh+nUsRUegwqO5 VRBGil6YrvMiu6yHVDIJxhCEOTNzFC37QUSdRU+9HXmqJVI07kLOxndhOP0TYMGw8F7j X/Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JpiOzoaiyx99ynR2WykS5OLOkmTVVgbbrLc0IXpWnR8=; b=PexQHH3BSWHegpuQDMKCAT+2uXAG/2015WjDUCSWtZPpumodXYgb+NcQ6V/w7nbtmJ 0HJOChEZl3VGuFxbAoDpxAbtkyuNerhri7miM+3Z4Sfof/jzFYpTndivMUroJ6VAm8bW Oy17gLOs3X9dqEKf/Yidq8P8qff2vUnkFFHWX/N0JEIZfBZHopRRsGFCckX6SSCuqMuF tzvVXarhjqNcmzThPAgzAdBpZvU8/MarLDXau7aKdNIsx1BKyesLwZkKQX6gImDQROrk 0TpEadHTEeJQpEIC58kKk4ODb6C/RHhFKRU8C8nog13RHlHb7HE/6OD5mkK7yiNdFwlO uesQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="A7Sf/3co"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si1815480edz.145.2020.07.27.04.12.38; Mon, 27 Jul 2020 04:13:00 -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=@gmail.com header.s=20161025 header.b="A7Sf/3co"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbgG0LMc (ORCPT + 99 others); Mon, 27 Jul 2020 07:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726324AbgG0LMc (ORCPT ); Mon, 27 Jul 2020 07:12:32 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0C0C061794; Mon, 27 Jul 2020 04:12:31 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id z3so8869068pfn.12; Mon, 27 Jul 2020 04:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JpiOzoaiyx99ynR2WykS5OLOkmTVVgbbrLc0IXpWnR8=; b=A7Sf/3coa+fxUWtaNpz7yyIgCasw1IqgduuJzPXaOtbss/krO+INI3+vdjSItItDls oHfR/G8SMHJY6U/3nsURjcNTR+Sy6VixxEXkSGgQ9kJ08Hbg1rGyo+DxOIgwy8llD9dA qZwNFk8MnRTfvYELpLeyxhGTAIU2Ipdzik0QYGH4+Qj9+dhFlPKtk9xbCLkyQhfLtxcU eLxCX2jsCSwqDj4AkMc0S27aaBarvBSKGkNeAIUdXttVJyiz7DeBFMDfy5RzKtgc1n7y 6cTaL2DtTX4QM7tekW/6ie7ZUVOCkgUIWUSsrr/bfl4UfNMqe0AMTM6ecFGiH67sBPQD tM4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JpiOzoaiyx99ynR2WykS5OLOkmTVVgbbrLc0IXpWnR8=; b=oqmwjOutLFZhn48kFgNFBsP+PzY0Iasq0eOnzYa9/7i4F7pNSBYbpPpqZomnnnu02h OU9D9uU0pxY7LRhDzYsYHEAF1CKXPDhkST29kswkJEjdBkEEYdY8wd4BXjB667kHsmfD bZQmEX4YC8kMSqqSbDfAWmkzIkLlhbROfDeXYBDApBHytJYKFLw3+a3S9yP9fdguH6rP fX1G6lZ4Qa2fK8TIl93DcA+/csmg+EPaZ5cXEoKjXr0ZV/XCI+eJcoZoXrLX9sYANpm+ XYm70EjYl28hV4NQIje7Xp2WQbfrwjw5weWdRggrlN1/Lbxo+td1avxj3fM64/uoY1hr 32sQ== X-Gm-Message-State: AOAM532U/7x4ul8R1EV2a8B3y4O3ptC5Af0EQizmgnIZHs0XyPMnqwqT QHBfHvU/ipdMD0gfSVstppzbsrnUaLpyZWiUv5w= X-Received: by 2002:a63:ce41:: with SMTP id r1mr19797993pgi.203.1595848351479; Mon, 27 Jul 2020 04:12:31 -0700 (PDT) MIME-Version: 1.0 References: <20200724223746.GA1538991@bjorn-Precision-5520> <20200727070652.GA5400@gmail.com> In-Reply-To: <20200727070652.GA5400@gmail.com> From: Andy Shevchenko Date: Mon, 27 Jul 2020 14:12:16 +0300 Message-ID: Subject: Re: [PATCH v1] spi: spi-topcliff-pch: use generic power management To: Vaibhav Gupta Cc: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Mark Brown , linux-spi , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 27, 2020 at 10:08 AM Vaibhav Gupta wrote: > On Sat, Jul 25, 2020 at 01:44:44PM +0300, Andy Shevchenko wrote: > > On Sat, Jul 25, 2020 at 1:42 PM Andy Shevchenko > > wrote: ... > > The only problem here, is that the 2nd is already in the Mark's tree > > and he doesn't do rebases. > > So, it will be the other way around. > > > Concluding from yours and Bjorn's suggestion, I will drop the > device_wakeup_disable() call form .resume() and send the fix. I will also track > the drivers who got similar upgrades and went un-noticed. Thanks for doing this! > As Bjorn mentioned, the problem is that I don't have hardware to test, so I just > replicated the legacy behaviour in generic by replacing > pci_enable_wake(....,false) with device_wakeup_disable(). > > So, from now, while upgrading drivers with generic PM, should I completely drop > the pci_enable_wake(....,false) calls if both .suspend() and .resume() try to > wakeup-disable the device? I guess the best approach is to rely on the PCI core to do the right thing. But mention this change in the commit message that we will have a track of the changes properly. -- With Best Regards, Andy Shevchenko