Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4855450pjb; Mon, 27 Jul 2020 06:57:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAKlVIeakAhMpItAW6VXlt9jBN08tGqlZy+AxkRxIHlJaxouHqOPVrL0VFQhX84+PEQVIo X-Received: by 2002:a17:906:37d2:: with SMTP id o18mr6305248ejc.162.1595858243856; Mon, 27 Jul 2020 06:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595858243; cv=none; d=google.com; s=arc-20160816; b=jqbXIKuiIhdbAwofXYzZMRUy+ZD5hq2ON34bknDQpTTWwYRFMr5/y1onVCTNVehCNz yCNgDHlIsyuwL6RgFbGNH9JLkuI+T7f1tw435gX0G8J0DQHI+u4xBkpYk50Iy31xTD+3 6YsC66IZU1Cy2Cs5qYcYy4jtOarfdpCeOquCqbFMkWeYSdGzMsy95DlzfntMGKoEiKcN gNDW7LyjQFRKOZSZHmQhRy1X64bkkPg2ohvrUQgsz079fb5zdM1HTzOt0BwhE9gCCCtC WX8S7xfT2f7uOgXuweMX1OJ4m66a25qfQ94VmjYr/VTAG8Mv3XIQz1147+mWvd5kyZvt sL6w== 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=ocZOH/qAxVzRpNDtMIHAj3P48sK/ccO+2zMNnR18J60=; b=mASZJBg2BRvn66HGTL6ziIrZc3HZObTz4JmrB3FT35c02jaAXFAkWuKiNpw1ZBb8Et anIcJFmP6gE3B1nV9ED5bwRGOeurkl++5AWfgjaEST3z/Wn5Ga0+XGL6N51YKtpD/zzv DrWplA2ZV8dIV5JAWqU4iyZxxBs+hgGEOLHq/uhU1lRltc3k+HTEgkiOL2/JIVrWoS9W /RHaxhy8+5ZIjFXifboUO8weR2l2vjHwXANJp/QJQQ1T5R0Id3lpqsovFP0Lx91Q0aoD q/P0N94FVfPoep8H73JWCmPnJGg4Zfm7WTWM0GY3VBRn8w4Db3+QJe+nLtYBPDz1BtA3 d+sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sRkfP9q3; 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 by28si2315684ejc.510.2020.07.27.06.57.01; Mon, 27 Jul 2020 06:57:23 -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=sRkfP9q3; 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 S1729083AbgG0NjA (ORCPT + 99 others); Mon, 27 Jul 2020 09:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729069AbgG0Niz (ORCPT ); Mon, 27 Jul 2020 09:38:55 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B792DC0619D2; Mon, 27 Jul 2020 06:38:55 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id t6so8012917plo.3; Mon, 27 Jul 2020 06:38:55 -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=ocZOH/qAxVzRpNDtMIHAj3P48sK/ccO+2zMNnR18J60=; b=sRkfP9q3WiUQNGxVKytVTA1DxMULQ/VpKMX43DZfHIchAb8n8WZeFwIcz7WFSx0GFt I5pi6jULLnS1k1rcTUtnuCjfKn8GD6VSztgUjZn9iTnNr7DF8cjShczCSXPemWLuhBnD VhJSQPrl6F00RB7O1eum8MXUk4H/LrqTYmyFSz/nF9V50sABvZvWSLb2UQVS6g0itTzs AY2rx0Dt51Q8dTGMOt3kjZ55kmGjxOCkBJo+67SJbdRoWXvmWiAkpXqBYirPmMq+6pGy H/b0GRm473V71yIkzP5jGOgWdLFNP2gAtrlyNVxmhTwKs7lQKXF+ULCG3jdkDviFE2Kr UPRw== 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=ocZOH/qAxVzRpNDtMIHAj3P48sK/ccO+2zMNnR18J60=; b=PZCHAFukM3ocBNzung60vQSSkDWhwCLuscQWJIafyJLitRJsC9Bg6b+/irzkVcEuvO no8jNCrv353Q+s535tCO36fuVpJO6gA88JQwNe/0dTj3QPZqpL8bBZCBxYg14lovVI7d sl+XMuyDlSETOIQQfpxYK9o3Q1lT5jB8SO2eIcH/nAxq9KGpD8/SkPLgiQPaRRYxM+YF jDvJRu4HU84/GUk2CVwf6jIS9qK/eXLNdR6tV/1xyglOwcNfjwEhEoa0uDyvF83Vjqyt 1QQj14fKtVOHFwdqj11EQDcZu+Z/147O6x9bcv2vY7MdfAkiMT/4lkEl29lgwAMAKPwM jgXw== X-Gm-Message-State: AOAM530nLEjArBy0v3gDWeQUcUE0mpKGfKjo+N9BoBepEKMcuuyigVmN qxLduY3Xc0nHR/BZl0cNKBt5P09cyEmVEO3BrywVlyJrgAk= X-Received: by 2002:a17:90a:a393:: with SMTP id x19mr16574129pjp.228.1595857135248; Mon, 27 Jul 2020 06:38:55 -0700 (PDT) MIME-Version: 1.0 References: <20200727131742.82289-1-vaibhavgupta40@gmail.com> In-Reply-To: <20200727131742.82289-1-vaibhavgupta40@gmail.com> From: Andy Shevchenko Date: Mon, 27 Jul 2020 16:38:40 +0300 Message-ID: Subject: Re: [PATCH v2] spi: spi-topcliff-pch: drop call to wakeup-disable 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 Mon, Jul 27, 2020 at 4:21 PM Vaibhav Gupta wrote: > > Before generic upgrade, both .suspend() and .resume() were invoking > pci_enable_wake(pci_dev, PCI_D3hot, 0). Hence, disabling wakeup in both > states. (Normal trend is .suspend() enables and .resume() disables the > wakeup.) > > This was ambiguous and may be buggy. Instead of replicating the legacy > behavior, drop the wakeup-disable call. > > Fix: f185bcc77980("spi: spi-topcliff-pch: use generic power management") Fixes: and missed space. Note: % grep one ~/.gitconfig one = show -s --pretty='format:%h (\"%s\")' % git one f185bcc77980 f185bcc77980 ("spi: spi-topcliff-pch: use generic power management") > Reported by: Andy Shevchenko Missed dash. Does checkpatch complain? > Signed-off-by: Vaibhav Gupta > --- > drivers/spi/spi-topcliff-pch.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c > index 281a90f1b5d8..c73a03ddf5f3 100644 > --- a/drivers/spi/spi-topcliff-pch.c > +++ b/drivers/spi/spi-topcliff-pch.c > @@ -1648,8 +1648,6 @@ static int __maybe_unused pch_spi_resume(struct device *dev) > > dev_dbg(dev, "%s ENTRY\n", __func__); > > - device_wakeup_disable(dev); > - > /* set suspend status to false */ > pd_dev_save->board_dat->suspend_sts = false; > > -- > 2.27.0 > -- With Best Regards, Andy Shevchenko