Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5088453pjb; Mon, 27 Jul 2020 12:39:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZRfbNXQWNJvQ/pmtJbEf0bvWBn3cu4qzFF8w0HqCR2RLfXwSGcveTi3+TW2xKY4mmdExK X-Received: by 2002:a17:906:2e8d:: with SMTP id o13mr8364426eji.279.1595878780225; Mon, 27 Jul 2020 12:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595878780; cv=none; d=google.com; s=arc-20160816; b=OxgK6q5rOP87DOoMivuXBLgrwxj4xS9hICfCJpfaXLE3sjZEZ64VTpSsAksiTWb50P azXXHk2IxRgPVoK96rWi4llfeZ4EYIBbK5iwHxNQ300KtE3lkQMG+DfgOQPrHPj+1kCU ke8AVfhEtOOYcY6F7le/6TIwLYflw3i9/7jCissgnRgqf/ZiTslXdYSI35rqUpL5Djun uyb7PsrIatRpAw2XkXE7QctTD97ix6j3QuxfEg5FzadGrFSogI4Gvh/pkUT1HX1hWrlr /ZxQJ0SDVmN2NrYWJr6YJGJ/d8fYBzxE21v5kbzc4qqD6iX+EuGmfNGFP2zek3uNWE7l RifA== 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=gv1At7xomxbSkiHEMMp/MdVQGHl3xOeUcLOgVXl9jaM=; b=jksqhr7cFhWPB2PWP9gR9r7CcjMQGt3zfLz3sJ98YPhCQ7oqV4jPkHcucYSKxIs+E4 DFlyhykU0tAGGRX9HL6SrMzyDebxCjoFvssx1AmBIKv/eRfJe4/J2kx9Gt/nI/yYPzRu nAs4zF8bUleLhsOkQZpBVhlubZxWfQlopxg2HedY1Dz2f9SR8DmTdKyuR9tbdFUoBf4d wzGfSKMu/8RVOlaCsQ3mjHukKlsorMv7cVWoo7kwwLvrM9TvOTprTeqGVqLHC76npKg1 oc1Ix88pWQnS8FR3rIa8XovUhyTTa7ALKEFCzZxRR0jakHL90JkS9iasKXxZgpEfzGaO L6yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QPX8niCs; 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 u14si6137420edq.122.2020.07.27.12.39.18; Mon, 27 Jul 2020 12:39:40 -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=QPX8niCs; 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 S1728932AbgG0TV1 (ORCPT + 99 others); Mon, 27 Jul 2020 15:21:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728922AbgG0TVZ (ORCPT ); Mon, 27 Jul 2020 15:21:25 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F906C061794; Mon, 27 Jul 2020 12:21:25 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o13so10458260pgf.0; Mon, 27 Jul 2020 12:21:25 -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=gv1At7xomxbSkiHEMMp/MdVQGHl3xOeUcLOgVXl9jaM=; b=QPX8niCszCEYxpgHRA5feQ/5WYif4D6kceFBFbLizenbe1uHxoE95G8CQl0uVw6dVx iWI628gC8Auh8f2Sn2cYTiODS3rtto/PqyyXjC4aqXyPIQh2GRwnPvB78GrTYsdaW5Qk kCIR6b/geTpTRscY3wkdoVzf3PMZa135FxFeKrN8PYWdYPhwd2hOznrO0iMhyDSRmjc3 O8aU3acP5lYmqS8KuElcP4uMhYjfaYoOxP6h1RFFlRlhvKj2XnPubCw1XDHHAHFSHoDa yUCtjmJXR+54EuDPRAeKkjeamRrM9si89qDs3TP3fkvV3+yS7Xnt+00eZ1EHkLgmP+7Y hAmA== 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=gv1At7xomxbSkiHEMMp/MdVQGHl3xOeUcLOgVXl9jaM=; b=mzjln8AkR/+tHdNx92P0ohvgu6zUsRr8kBPwSYJpxgo8d5fZGyXL3DHsZQlEUnxVSs d49ttDTGZQuNjXzM4fro9ovqmuR+sCDD/cTGYHovyxGZRuXM2ahBeX8rh9RDbxNjHYHb lfnA7BhpSXyyabz+qqF9KtM1pgbyk5+Q2JkXfbGqQInlu0OcY4NSASgCidGb5owEML+7 FtI9reKGL6hh9mQDrbBszFTqoFxEt1AWyXmqJoCDsF7kNHFQBJoSwSxj1oMMhnlaDMMV 5RgW41a45VY2G2PPlyn5vVokSKmnBpAazdIsVqN4KzBlZldEMRj2zxPZRxoSx3j6lOO/ pzpg== X-Gm-Message-State: AOAM530QKlt2pH6nZSJUuj3MYEgkBt7prPcF9WQfm3VPJGNYpfmAefav yGVbNFaR/8MUILu3XGI9eAyE+/BJ+KcuQlHHodk= X-Received: by 2002:a63:a05f:: with SMTP id u31mr20695620pgn.4.1595877685130; Mon, 27 Jul 2020 12:21:25 -0700 (PDT) MIME-Version: 1.0 References: <20200727172936.661567-1-vaibhavgupta40@gmail.com> In-Reply-To: <20200727172936.661567-1-vaibhavgupta40@gmail.com> From: Andy Shevchenko Date: Mon, 27 Jul 2020 22:21:08 +0300 Message-ID: Subject: Re: [PATCH v3] 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 8:32 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. Reviewed-by: Andy Shevchenko Thanks! > Fixes: f185bcc77980 ("spi: spi-topcliff-pch: use generic power management") > Reported-by: Andy Shevchenko > 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