Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2454287ybh; Fri, 24 Jul 2020 13:18:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylyMAJ2Z4NkL4nkyx0bU9D4AIeJ9gHemGvh3F9H6sOeR8agZUfklTSnQjELrJa5TaSUYUo X-Received: by 2002:a17:906:7155:: with SMTP id z21mr5323667ejj.282.1595621881125; Fri, 24 Jul 2020 13:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595621881; cv=none; d=google.com; s=arc-20160816; b=Ojc+X2dHzZqdJfbLbfvVbckLvGlT8ebuBu37p+L9t62cBL7TlDvyrq7RosuIwcWRXj tWbTNrpPtq6v9aJixBegD3+fI6CAut+jEIwu4Hek/sKEH6WNMkWSizdw1Cwgq6uLLe4y l5MHsFU+EYVXZxmedEOtGBb06zKPk70IDwA6fgNvRzbaYCLzwd2FkxRkJRIT9wETHgvc /5fxWk5nTnx4/o3JqvVUD4GGic8oxCjogY1cjBEjjxxdK5040NJG5xZBzY7mVJBeint2 FOM70QzOQQc+qTRQVtTbmCzHAmsRJobVwUsK8yIcrBbvonJFHVPtBUgvO7HMzX8ln5+n jEgw== 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=7mKCbM5fDDFwgjqPiF3ijFcse991Sj2a3LfByPXLuII=; b=xT4SOb/NHQWNmw2zhfIXexxmyRsQ223z2AME7o8Ztp9HNFBZMEN+HKyt7sfG06qsdI oajMCqBdBVAUz8epsX9j2Mc1mniyS/BsqswmDEI1GqsE/UCXT+9jwrdaQ96dlVl6qm24 2CEXXWaeUxFSdCPk1b6KgGoalnn9HwSW0fMU13sR42kvOBpxE/YOp+U59yD/Rqk9R9eM AjafvwFysIp3ZDbrGaQnNxcdVDrN6OotcxBf6FCInbmHhQ5vU9Omi3Z2HJr/st3lyeMu NAPuZK4riQrFyb41q3EhXJXtf/VcS58z2YoNsuWu2nEXjqK0zeNlDC8BK2A5Hrxcn8Cx tkmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y1tD4DN5; 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 t2si1252362ejd.382.2020.07.24.13.17.38; Fri, 24 Jul 2020 13:18:01 -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=Y1tD4DN5; 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 S1726573AbgGXURO (ORCPT + 99 others); Fri, 24 Jul 2020 16:17:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbgGXURO (ORCPT ); Fri, 24 Jul 2020 16:17:14 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D667C0619D3; Fri, 24 Jul 2020 13:17:14 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id q17so5157450pls.9; Fri, 24 Jul 2020 13:17:14 -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=7mKCbM5fDDFwgjqPiF3ijFcse991Sj2a3LfByPXLuII=; b=Y1tD4DN5yNl68XSvLYmxs49j7aiN49qTyojf5OPc4Kw+MRCZfCt6UtBSWOlB678W1M BKqnYzdnHUIxaCvMtOy4wR0cwDOduZusruODItl/nbNcNhlVrWx/swEzgEXHePVXVbWe rUEdjZT4vuYtB1vjXCmV5i6xWPlDyoR7/VP3PTRQYVYl8pQtc7GhXQ4BU6lNGJn+wZ5P AVY2CuUl+Z+Om8n6hSqVgIkZjcqXk1FMzIJylM4ZOQryxgLHByB+gyU2P97Z0Qc72zjJ 5xI94kpV5S9p8LyDSBhr0c1oWvsNjx299v8mCyyIHFvghoV86nL3xhxPvfI13BVBDcQ6 kwJg== 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=7mKCbM5fDDFwgjqPiF3ijFcse991Sj2a3LfByPXLuII=; b=blrwDqjv3ar1L7qU40tBFrbFk0FoelZqK0OqOelkwq8MvjnLg6ihv1yk8DeU8exZOE GjvxlxFdCmQDXydEL3OdoUwMXr4YgkYbrUnFH+78f+VaQsAoX0xNhJr/TzvQo+Q+QGNL BeQd1vitkXOv14ceVRTnHGQY9WR6jPIsggV8/vpeX9I0inDdPJxGMGalPwDc5OgkyTay nRNUhA6Hgsg5oUm6xmxnqc+4DSfiw3fXYAENQs+r6uiotyFiNm1PvIhrWtF88USwqowK BXwZUniBFUjZxt7EoxnuZrIk4RCRkiS1gJrp/Kgkx76iNfK1FmCCd3te9u1gmWqpFDUu jteg== X-Gm-Message-State: AOAM530yPP/CjW0rfNJj3Pb1UeOOlyvYb+msuHRMglXpvwtAQyY6YfhS 0QooSrppLmRRaLVkJhZhfvo4PrLYDxmruzUar4k= X-Received: by 2002:a17:90a:498b:: with SMTP id d11mr7409909pjh.129.1595621832763; Fri, 24 Jul 2020 13:17:12 -0700 (PDT) MIME-Version: 1.0 References: <20200720155714.714114-1-vaibhavgupta40@gmail.com> <20200724151601.GA3642@gmail.com> In-Reply-To: <20200724151601.GA3642@gmail.com> From: Andy Shevchenko Date: Fri, 24 Jul 2020 23:16:55 +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 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 Fri, Jul 24, 2020 at 6:17 PM Vaibhav Gupta wrote: > On Fri, Jul 24, 2020 at 01:51:49PM +0300, Andy Shevchenko wrote: > > On Mon, Jul 20, 2020 at 7:31 PM Vaibhav Gupta wrote: ... > > > + device_wakeup_disable(dev); > > > > Here I left a result. Care to explain (and perhaps send a follow up > > fix) where is the counterpart to this call? > > > Hello Andy, > I didn't quite understand what you are trying to point at. And the result part. I emphasized the line by surrounding it with two blank lines followed by my comment. > Yes, it seem I forgot to put device_wakeup_disable() in .suspend() when I > removed pci_enable_wake(pdev, PCI_D3hot, 0); from there. It doesn't seem that > .suspend() wants to enable-wake the device as the bool value passed to > pci_enable_wake() is zero. > Am I missing something else? At least above. Either you need to drop the current call, or explain how it works. Since you have no hardware to test, I would rather ask to drop an extra call or revert the change. -- With Best Regards, Andy Shevchenko