Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1028561ybg; Mon, 27 Jul 2020 06:11:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAcqgyMQHexjfqeud7UTrcSKe21CtWa1n4TNjdXiTT57KaYjS4RPm1wy3Nv4t/teI18Hu9 X-Received: by 2002:a17:906:398f:: with SMTP id h15mr21763612eje.391.1595855505830; Mon, 27 Jul 2020 06:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595855505; cv=none; d=google.com; s=arc-20160816; b=WdgPoczd8jYygSzTYzooB4yusiPIlRk2Shhwj0ATy/dn7cZBX/vYJnH9l8SzxlEjuK gkv2LY1K+FMdKk4+tC33J4wMaLqR1OeM0UT/J00CcOOmyssuTqX1ydtDY6DLV+r0zMmA /Ei5yZzWzmcWs5NZE6Xari42iCHGnnGCxgP2+jVofvT60bQ+CAaxCsu1Zcjge60a7VT7 ElrET1RR7W1HSMyH5wBZzSbrZCctE2qbpW+x7Hw4gNmEWp1cV/ujyW9qqYgpwooJhGE3 AowpMEmtS/zZsKA++8bOht5j6zyW2uuh/wM6C9raVMUqtz/oqxkFtLS+tneRNP9xt5S9 9n4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=m8ss2q7X9z9vWtUgWZuhapv2kDOMmjklHJYu5RbP5UQ=; b=X/jnpVYqi+URtxDhesxH6LGKG5wBZpgmC0+GPeD20xuXsP4Qlj61o/m4nqRmdy8CBD yVqqhgbT3aZKk8j8trzorrP+DxRyi++EtLdFXdc3kLjRrhLiq/tKG2pKr/6J1fwh5/2N PRhx8lYhx9xqHgVnL61vuj4AFQOERqFLSWzulnWhF5bAs8lDyDmFv5kVO7cWb4ljuOkj 90/tT+0LXMbjlIBvhiZbEQp2Z0sG7g/3X9p9r1Avnpn+4MHS1a/guaESYJcSPEeRWHZV DhdqRFKYr+h7NjSwWPzlSDsdXzUT1s6Deo0FoE+NVl7D14NUX3M9+2HNf/5LpalN3lHm tjFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tfe0RUHc; 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 ly20si5455689ejb.607.2020.07.27.06.11.23; Mon, 27 Jul 2020 06:11:45 -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=tfe0RUHc; 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 S1728620AbgG0NKZ (ORCPT + 99 others); Mon, 27 Jul 2020 09:10:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728141AbgG0NKY (ORCPT ); Mon, 27 Jul 2020 09:10:24 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26CF0C061794; Mon, 27 Jul 2020 06:10:24 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id e8so9474370pgc.5; Mon, 27 Jul 2020 06:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m8ss2q7X9z9vWtUgWZuhapv2kDOMmjklHJYu5RbP5UQ=; b=tfe0RUHcG6oEB/pYDfPsKbNlouoLw0dJgAttdqMZmC+zxCa/y4vF/dDFzGevJjNZvH cBQT3JQLt5EnDjE4rTePPuKCj1AaL56IC2TphWX1/5fnCdys4Rl/wDYqdE0Qi7uRvYE6 0oK7ZkmnNGgA7wJSRU5NcJt+rshEcFyoMSukxUhyoB1IfeHhivqMO0bGgkHWwxLSSt62 sEnNrtGDxf5e/i0e+pnAbhSsh0jYdYT8ORkwoFoPOQUxBHU1Pgg1vIYL4E+rGViAKCpM F2fuW8Dg2ZEun0pd/DnorX8w3ZC5o4jVcSlfDl60+7kOdWxBRnomw/s5TkiuhPv/loXX S/ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m8ss2q7X9z9vWtUgWZuhapv2kDOMmjklHJYu5RbP5UQ=; b=GiXSJBBthCRDBXjc9L9rWGlJ8JsmF6LE8zl4Lx7qBp1BJQ6+44s1ugrOG+WhMk4wPI WWJcKGMSQwqNA5ZBeWhuwNjygvK+3Mp9bbhPkjCmcN4VTDJjjb0msHIfL9m2Skj3DIi+ EDmGklieXBDWUYHZGjFzR1zHpMI64XAhnDH5nYrGn4JWd9Klw7qjsJ/PhXXcWFbJTQE4 8GkM6qIcV7T83eMEsieB3573UVV/aRe4kXxvQwdNZ5nPf3BegYUUiDbwIfIvpZOzbSBb JTohgLifxaDKKD6UctT+y5q7f5YGWRESQDqnxlEwpZfAmD7r52cp/Y1ZK3dRw6mCN7Y8 X2yA== X-Gm-Message-State: AOAM532AiSDuQj5uYCQyOtSTG1+D/7V0JGxEwq+qJe0rgJKj23zzmoLx aAB+Fg7tbdqNoH2RyzXO0WPiA+/QQboJzQ== X-Received: by 2002:aa7:94a7:: with SMTP id a7mr19562705pfl.83.1595855423688; Mon, 27 Jul 2020 06:10:23 -0700 (PDT) Received: from gmail.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id e15sm14802124pgt.17.2020.07.27.06.10.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 06:10:23 -0700 (PDT) Date: Mon, 27 Jul 2020 18:38:58 +0530 From: Vaibhav Gupta To: Andy Shevchenko 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" Subject: Re: [PATCH v1] spi: spi-topcliff-pch: use generic power management Message-ID: <20200727130858.GB82098@gmail.com> References: <20200724223746.GA1538991@bjorn-Precision-5520> <20200727070652.GA5400@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 02:12:16PM +0300, Andy Shevchenko wrote: > 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. > Okay. Thanks ! Vaibhav Gupta > -- > With Best Regards, > Andy Shevchenko