Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3438097pxx; Mon, 2 Nov 2020 08:54:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7T6YHmOzBEUNQ7hu84G8RjrXHJx5T65Mv9uS1bVAadrLo9kTYwqq/nfuLUHl5zSaBPq73 X-Received: by 2002:a17:906:66d2:: with SMTP id k18mr15625169ejp.113.1604336071567; Mon, 02 Nov 2020 08:54:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336071; cv=none; d=google.com; s=arc-20160816; b=VTaT4E6ZA74x8LgceFW9koBHIosHm/4jdE8tcygDs7Qo3TE76D5EuSshk9fPttgEh5 qMTVKfakdKdZhJXTZjagXWFWY/TobcDxPly2L1+bfKXEtJWOr4a0vAjLyCFg9Y8cHVsQ brjD7TBIFNdK6MXJNNrV6nz9Thl245CBOOczsCE7Xk6SIuoRS+R0SJfywk53I0SUaONE 68skm6uPAPS2o7UZdxX1ftqWos+eJ9SzAMWNpMpdtEIvBDNpvBDibPACr096WT9msPL7 iUgzUWcmFB/7pi7g55olyQL93ll7oojlem91tTLddaB4LwDAToRaBoQhUMma/TifmbAd 4Gqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=80Yi1XLQzKPeoqRYuchuEzVl/P6+59b0kyvSplkNuqw=; b=yIQDY1NeX1cmA35aJlPugPyxfvBWUvr1i+p35jzWXjDmPRxuxcRo9WwocIjx1HtHi5 +fXkVvBt+bIlblh21pKyzG/RJg/MPNhgWWgaXeQpyu9y3WZvLfwmmVyW/YvdwFI8RnLL purBf6+yjXGH+ScIUjz5OTmYB/v+9EcM/8nehRsknPYcboe1Fu+oCoW8QyaRa/pxLSCf ZoLsofAhGtc7JvE8bwrz2Q6f6GHs9NRfHTIvRbSGLW6s5qdLcGGaE++/AsFLJ3/eZ0qf qaCQ3Vzz7985ZVWu+gGzQVBTgvjqYeD8Z2SIqrYBMRPDC6RNtmRn404Zc45CB5e3WkIi T3aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EInGRm6c; 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 dn20si11922554ejc.64.2020.11.02.08.54.08; Mon, 02 Nov 2020 08:54:31 -0800 (PST) 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=EInGRm6c; 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 S1727393AbgKBQw0 (ORCPT + 99 others); Mon, 2 Nov 2020 11:52:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbgKBQw0 (ORCPT ); Mon, 2 Nov 2020 11:52:26 -0500 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 54572C0617A6; Mon, 2 Nov 2020 08:52:26 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id j5so7098449plk.7; Mon, 02 Nov 2020 08:52:26 -0800 (PST) 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=80Yi1XLQzKPeoqRYuchuEzVl/P6+59b0kyvSplkNuqw=; b=EInGRm6cBk43ZkBUefE+Lxc1nMZ8wuWhwjNtsLaYAjJkkpXaroUIq/Ir/9rRIReZTa TX9Syn6BVfq83IPRQ7ykGpcDSU2omjDUI3aFWdcpcTOE4zk4dSfSsjJxRXA/HxRfwRnq ItPVjw8aiAUDrYudk7Kq3o9fsSpGJ085X8SNop1TA56COWuz2G5PaKpEdELT/3brT2Re Z3KSEtx+XzcTXvGNXhcZFGfzpg1EJVAyhG85b4saGFxQuf05Tf97gMtSJAW5Cf0q6pit ImNpcFHlfvOWYNqWyTpk9PqZ2elCuC7uo5nkhF6uYvOiCQO/H1luHZ5Su0VVC1HGsZPR VbTQ== 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=80Yi1XLQzKPeoqRYuchuEzVl/P6+59b0kyvSplkNuqw=; b=KFjTtzvKL3ixdicJKOip7CvYadhzT7PDfJ/f1hEkc6Eqxjk4/U7ka66QJvF1hsrJOS bPFyy2+0nAONKUAmAOrgGNzhCZXPEbtXTuiQcI6q7Kdc0wU1bTrUXL43yZo94pBJIfQ2 arcO1Y7/eN0TyAmL3DKbU7Twlvf8STLmTz3+zSjFEF04uV8qQLH/76yPOQPtWhFIgGXm 8enbjNvLfXwUBMYV9+0a/27G5xs6MSiIRx1OQOOpEIL/ViAd5lQ2vNDHhYLcgMrbYrA/ 698UbugsxuMWh3L+cmDZlfj0GtDQXyPnjCCmbrJzkyFiN8ARafoVBvE5F0qNaLHs0PSo koMg== X-Gm-Message-State: AOAM533UrePATMO4paMLeFP4dj1vrlrFCbP3Q3dm1Wq6bn6onF9hytjg T2mNkv19ZJ5Mk/PD93la8ow= X-Received: by 2002:a17:902:bb81:b029:d5:b437:edb4 with SMTP id m1-20020a170902bb81b02900d5b437edb4mr21171215pls.6.1604335945887; Mon, 02 Nov 2020 08:52:25 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:52:25 -0800 (PST) From: Vaibhav Gupta To: Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Adam Radford , "James E.J. Bottomley" , "Martin K. Petersen" , Adaptec OEM Raid Solutions , Hannes Reinecke , Bradley Grove , John Garry , Don Brace , Xiang Chen , James Smart , Dick Kennedy , Kashyap Desai , Sumit Saxena , Shivasharan S , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , Jack Wang , Balsundar P Cc: Vaibhav Gupta , Shuah Khan , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-scsi@vger.kernel.org, esc.storagedev@microsemi.com, megaraidlinux.pdl@broadcom.com, MPT-FusionLinux.pdl@broadcom.com Subject: [PATCH v4 10/29] scsi: esas2r: Drop PCI Wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:11 +0530 Message-Id: <20201102164730.324035-11-vaibhavgupta40@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201102164730.324035-1-vaibhavgupta40@gmail.com> References: <20201102164730.324035-1-vaibhavgupta40@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver calls pci_enable_wake(...., false) in esas2r_resume(), and there is no corresponding pci_enable_wake(...., true) in esas2r_suspend(). Either it should do enable-wake the device in .suspend() or should not invoke pci_enable_wake() at all. Concluding that this driver doesn't support enable-wake and PCI core calls pci_enable_wake(pci_dev, PCI_D0, false) during resume, drop it from esas2r_resume(). Signed-off-by: Vaibhav Gupta --- drivers/scsi/esas2r/esas2r_init.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c index 09c5c24bf391..905a6c874789 100644 --- a/drivers/scsi/esas2r/esas2r_init.c +++ b/drivers/scsi/esas2r/esas2r_init.c @@ -676,10 +676,6 @@ int esas2r_resume(struct pci_dev *pdev) "pci_set_power_state(PCI_D0) " "called"); pci_set_power_state(pdev, PCI_D0); - esas2r_log_dev(ESAS2R_LOG_INFO, &(pdev->dev), - "pci_enable_wake(PCI_D0, 0) " - "called"); - pci_enable_wake(pdev, PCI_D0, 0); esas2r_log_dev(ESAS2R_LOG_INFO, &(pdev->dev), "pci_restore_state() called"); pci_restore_state(pdev); -- 2.28.0