Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5063560pjb; Mon, 27 Jul 2020 11:59:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvkS2F2NbxF2o2W2U332lHC57OQu5FnTxqW0qWDEr7Vr8xRuTjmMMoDOWR4UaEDIeXAU2Z X-Received: by 2002:a17:906:cc0e:: with SMTP id ml14mr21903780ejb.432.1595876395323; Mon, 27 Jul 2020 11:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876395; cv=none; d=google.com; s=arc-20160816; b=TF2laBz62BzKgeJ6T9aJFZ0JoTko9nR4Ye/CeeZtJiLq70C1laN44bicGhFTd8s4af ApEK2Htjk1fIPl1/rEueUC9pXP8e1IvJn83qQNxriJ76QK7U6tGPRvNdfPniCo5NFBh1 bnbRIW5UTvAl7Ny9WuirVo0nHWkKeij1C8gCTFXUNssTda7+sSxYXQr99B9f6bPNJaVD ARA3A9pkAkbvWc8IKu9e6z5r+VBCV3rHqvfFV9wX3cidMPKk2CvmXPkgdPSWZT5TnzFz WCTZS0TlAdZnKUh/UDG0UsF1MeilN8rWlloN2/pJNHAokSlmyM/tEoMZDNstqlnUmD0A OSCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Y/oiTZvRbIGlVilYBQAce6xZVdmLxNzc+uCZkzk1V9g=; b=MDUhmIjrumokU5axAa/5EjTTo5VDrrqt5Powusaq/cURxtLPEKcPkUx1DldwaD9xc/ K4WuMcS2wdbtLZVh1MbyPRc5ZxpqaCOI0T5cDW4caDwkUgsnT89o29u+in4jWZMscoq7 XY7YPtWPZ2RYiQfXFyHpy2rsOc+KJOI6tSWn8+CHvbbTrmj5GAsVMvapr+3cnY9OYzD5 fWfJGNatBA3whmdo07Nv1T+4XJDA+XRBYMFdwU7pw6/KPsxZh4kd1Jj6giNAZMb0/D9d fvRkXVwFS5EVtmSe/MhddJXRMYNnOgpp9Av4LjpLAPRvFIAYOj7mjNsp1NFs8GVC/zFm YnnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FHs7NZnj; 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 f25si5219313eje.338.2020.07.27.11.59.33; Mon, 27 Jul 2020 11:59:55 -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=FHs7NZnj; 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 S1731287AbgG0Rcr (ORCPT + 99 others); Mon, 27 Jul 2020 13:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbgG0Rcr (ORCPT ); Mon, 27 Jul 2020 13:32:47 -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 16122C061794; Mon, 27 Jul 2020 10:32:47 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w126so9283312pfw.8; Mon, 27 Jul 2020 10:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Y/oiTZvRbIGlVilYBQAce6xZVdmLxNzc+uCZkzk1V9g=; b=FHs7NZnjm1y+Y0yUChIknkWpkRZeJSCPECasUc1GMHAAX0gQC7gJAuExKfTQg7YxK1 RUEDwI/yoCS6n/MAz2kzUyR1GEi8teb8fBWPR71NfQOMldeVOEruRq8ehJwY9KQsapzX VttbXvWYZpzHEXv3/AsCgnykZlqIkofJxNQRSl86UnfHYfHfCRpGD7QfBdOkCbCuc5/u +tODKkcQ1dt1Q9MPe6D5gxWZL+sf27Y1rKDqNS/HwIDAbmf/aVM8qctgzobo3bNaN9Pq DXAgXHVNMFUpmOkmRAZio1bmexKAlAfRo2vsRAcg5LU52jLv2Lri37SJq3juqcItZTqY /xNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Y/oiTZvRbIGlVilYBQAce6xZVdmLxNzc+uCZkzk1V9g=; b=D6pkcIsP8QuInK/8j8YIQAVmdMcaSiKf4pm0SNROqFypP4ceJNn/oloABUBj29dB7H D8IAsOf5PEC+W0aeZ1HZadhkVAS5O+TnEIKORH+UofbzsTPbj9E4FMTUGgJz1pCSVtP2 ct9Bd0p1qClOTYplRxMM7mEZOjOPvX1pud+W0gpZhhcxnnaJUjV4VQQX2nqZ3HeeHXyi NoIye4LeCiaoTV2TLOcjy+moMRJEJ5Y59+q/shZfK4lVNUDbNifiUpo2in/HnW9PM167 Gh9II375z6X8nO3QSu2WQvzXrLsLnh9orP6uLqb1j3lAmt+IgD1LidD/4kjlONHHOEqL b5lQ== X-Gm-Message-State: AOAM532VmM5tb/fiyspLc0qJkl6TTjEheMOLMnf7yrgEl4p/7WC731X7 lEeww7Phd4ekxAeWRnTpRBY= X-Received: by 2002:a65:620e:: with SMTP id d14mr20414491pgv.360.1595871166544; Mon, 27 Jul 2020 10:32:46 -0700 (PDT) Received: from varodek.iballbatonwifi.com ([103.105.152.86]) by smtp.gmail.com with ESMTPSA id x66sm15427782pgb.12.2020.07.27.10.32.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 10:32:45 -0700 (PDT) From: Vaibhav Gupta To: Andy Shevchenko , Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Mark Brown Cc: Vaibhav Gupta , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan Subject: [PATCH v3] spi: spi-topcliff-pch: drop call to wakeup-disable Date: Mon, 27 Jul 2020 22:59:37 +0530 Message-Id: <20200727172936.661567-1-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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