Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3440056pxx; Mon, 2 Nov 2020 08:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw3xixjE/SSFhk0xZMdskY5jaqYAIw4FjwYb0DFXMMlC5EdRRGXTrRMGf8BGUDwD9o9D/d X-Received: by 2002:a17:906:31c1:: with SMTP id f1mr16833159ejf.253.1604336266999; Mon, 02 Nov 2020 08:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336266; cv=none; d=google.com; s=arc-20160816; b=EKgfAxRq9adzrjEqL04kh4Zbn70P1yc7Wucddsg7/zSHvsDPXhY3l7G+f5H9ZRd4Bw +sF50MRgAHGwFEDnm5iEEgpUEfTnSdd696uA2v0/lXZ98qX2GL3XqoVzupH0yUZOfjB3 W8rIUMG7ueGJ33lTor/0fRvzw6fFOcS5+5OushSL/cQXiaobEjwEtbikzoBW+dDFTuVn qlD94q2kYUL4zEHfVwORj7QRUHHjB5kvBw7RaLAimd+C7gy9q36GJK8AKBRkENT/f5Pw mBgjUQkvSq/bMb6Udrqlk0H/zUn87Po80X8PDmBijEoXuxO49ShXYgUs8Vdv55ElgoZX TJUQ== 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=fW/BfkSigqeA/7sHlInXZcmolxISxSAGZHTmLq9vq7w=; b=OzOgQxhLfHVEL9rMswkyeQQHcgKpbR4TOnfXEZ2fNawJJSZ9RHE2XxW2aH4ggmp1Gh vFOL+wXxv+UYDEqY9mj0EiEsitajxe8j36bbVWFU1Dn3vyWtg5JLkz5+9C2l/iQecgnU mlNSAGzFOg40v+vdTkY3kNX1Fm1ycSuruu5FGMBoPNgG5B3nHbZ0DcvRk7rLwuYTKWKf g0jDk68fXyl4arsBppqcJmmBXkLacvMsimv2PACN7QbZC86Zxy7dbAk2QWXqBKDPialW 8EHZ83Tecyimg6FX/kiKP+fEpl9x+WKXXasQ6JBKsUw/ljQ5qfxHKnZhF71qoTPpfii5 B1+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="byawQ/SZ"; 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 g1si1261050edh.491.2020.11.02.08.57.24; Mon, 02 Nov 2020 08:57:46 -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="byawQ/SZ"; 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 S1727365AbgKBQzd (ORCPT + 99 others); Mon, 2 Nov 2020 11:55:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbgKBQzd (ORCPT ); Mon, 2 Nov 2020 11:55:33 -0500 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 4C9B0C0617A6; Mon, 2 Nov 2020 08:55:33 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id 10so11618333pfp.5; Mon, 02 Nov 2020 08:55:33 -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=fW/BfkSigqeA/7sHlInXZcmolxISxSAGZHTmLq9vq7w=; b=byawQ/SZbG7wwZwJ/BWULutg85ygIZfRKdeXa6SDhyrH+Rigyw6EMt2sR1MiBbdTHo M1mHBCdM3y2DRE3nwIa0HJ5k9WC0RrQrjWynbAxYIaDORDdrqukMS2WUewpCne1LJXYW BP9li66eIdwTbKooMZc37vvk78qDwS6ARQJQ40bwL8JbiOZpr3L3H9JFwnhEbKs8bYYr e1Jkp1hoefRoRYxYTlxlvW5g3nfMnlKn0RQzuPdS5E04KMkj2nsjb7E6s3+hmDMw/rBF ale7UeErtqRDabJT2q8yjGBLjBtYgxYA1bRnU+8UJus5+SNjPOrGz8Yh9NnvSOXLkPm8 vhDQ== 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=fW/BfkSigqeA/7sHlInXZcmolxISxSAGZHTmLq9vq7w=; b=MzkzJ2/gIxgofl9dMAo0go0xUkHT4i5hS/xf7LdHsY5kB1dUlkc+M0QwbCE0bqj95m UTWdDAiZxlgqFGKyArvZeVFAKzsiaA4h1vrl1t150z4vlOBcTX6EsK5E6wR4qGI+tdn+ zDaDQEvUv/3gxVbJHfBgwB6T/USe3hIi3FOdTq5pQEX6ZQFYFiwh3mcEwXlBbet/PnaV fGqo7QMolnwylwKRAAwWDyYOHzPSnAdvjEBH1q2r5FWa12H2XK1rmJqhjYDHT8b8XspG OnztcWQ3Cmi0bMZ0uJD+1ELB2Xxe/wud3W2cTMDiBK2aiEwU2Kv5eiA8BHf/jXUfTjbe GBQw== X-Gm-Message-State: AOAM531Q7aQaKH8/ZpLUxNWjO9O9HADp4alq461FnzGVeV0p56W/GMJO 5u/79dUw6kT5cVh06S2zLwY= X-Received: by 2002:a63:221d:: with SMTP id i29mr5230679pgi.69.1604336132873; Mon, 02 Nov 2020 08:55:32 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:55:32 -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 28/29] scsi: pmcraid: Drop PCI Wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:29 +0530 Message-Id: <20201102164730.324035-29-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 pmcraid_resume(), and there is no corresponding pci_enable_wake(...., true) in pmcraid_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 pmcraid_resume(). Signed-off-by: Vaibhav Gupta --- drivers/scsi/pmcraid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index cbe5fab793eb..5c767cd8ffc3 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -5271,7 +5271,6 @@ static int pmcraid_resume(struct pci_dev *pdev) int rc; pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); rc = pci_enable_device(pdev); -- 2.28.0