Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3439312pxx; Mon, 2 Nov 2020 08:56:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNnwlC0NhmmfTaE850bQbEQEPy7DT9EYBNP5WOxGLRCwxqmymDEgGufHBzo2shBRidFLWX X-Received: by 2002:a17:906:26c6:: with SMTP id u6mr16919735ejc.349.1604336197271; Mon, 02 Nov 2020 08:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336197; cv=none; d=google.com; s=arc-20160816; b=soab2vNKkFwj8RCDZXGo0F+pMSv59cmgK6J69Fk5ZM6/zH3+P0i8gr/vjWsWp4yF8g CQvT926uUmq2mbtVmzlDVBb0KzuT6LJNeOBtcubm/G9pRCxjiIGaKBbCYajR6mmATVrr UGYpf1Nck+daC5g9oHyDrvTmLPNrjaKgEnE+1OtFz2cQwcrkpLnRckmyss/aPf6TUlwG QTU4RWJEZ/jCWf0AHqzuKksi+9ykYMaAe6Qi2pb5INylI2hW2aN7yrq6mXoQ/aSGN7OO ypIJRDZFt8/UCLGXA8gOQ7ZYLFHZQgHg5DpLubyh22BDSUb3xgV67ywbAe5rPhjRxYzO faEw== 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=6rD2BjZVXaWq6x/ciVXhavn4M1TtA7njBLCCq/6xvNk=; b=VBMgu2FVFXBmbhypEFr8Mq1peeqDyLA6vqavwyKSnWbUprClozMoQal25s1VIEvyFX D9uaCDZaV/Ul55UaAu8l8wzQyAuha+96XVUvTMRWmBEtJByAz9mpxWaOJamzvsZcnNUs 5dDbpkcK647eWhvQHriNn5m8UhqdFgTQ2bKy3RNdjlt3I6zbgPAhvUOILyFDKm2G8ynW GVQYLj8CWDmVPDhcuOVlxBh0JNlqdCeKyrjr/dQ13Lso+AoiVSHEoNhNU6GgyLvafBPF Mho6Nllr1Ms+7N5r31M6VUOBRZ77fFZwiyMZtcyezqm8jsVvQ1Ig+jdr3rwv0juWNBAe xIaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b7V5ebDK; 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 x14si589275edq.219.2020.11.02.08.56.13; Mon, 02 Nov 2020 08:56:37 -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=b7V5ebDK; 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 S1727218AbgKBQxx (ORCPT + 99 others); Mon, 2 Nov 2020 11:53:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727314AbgKBQxw (ORCPT ); Mon, 2 Nov 2020 11:53:52 -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 DE7FEC0617A6; Mon, 2 Nov 2020 08:53:52 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id x13so11599551pfa.9; Mon, 02 Nov 2020 08:53:52 -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=6rD2BjZVXaWq6x/ciVXhavn4M1TtA7njBLCCq/6xvNk=; b=b7V5ebDKKXGuZHoL4SHs/xhU9TSjdnCtAK37F+LCrKoSIqMXn5CcNy6Q7UT6JXy5DQ FUwcS5u4UIEyEmtTB+fdZZ/Bn7qPuDQDD3GZPwCrJ3x0nb5OlkVEustCFKdd5zAEktLk OAwlU8y8Agp+4CSx30btenvFNwz50WL63UtlPVo29WPutJSRSMPbz9fm0pwBSkvADWzq xgvDFX9h8N5QCdSVpJt9yc82mMVjp6GWSoiIjAcHYK8WFXoAC8gsBvslTruCDf7LfBas 5PCT5R2awaZbMHlmbLEQLiqBn1Q/1k9+Sdkkdy1pobcJzsFulLI+TpB9iQbIlL76eD5f AYdw== 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=6rD2BjZVXaWq6x/ciVXhavn4M1TtA7njBLCCq/6xvNk=; b=aBdXmiOPDUjdxttjgwsBrsEe99+abUBNyF82r+iiA0jFgshzDfa3UAhCwt9bcRwB49 lZ0tPgJlon9p+tTkDyjk2vCQCIbJyrgw1ONQ34YHYcmajjJV1/AbkNR/VI04h8oQshE6 GGs0B2T8IhusxY3jRWxhkLxxrCQ3Sm3MtllWHb+MURubGxUpzrAyM17gxT2OpRrUbAVJ wZZvG/z2B/A0JYAi1CrWYji3Vok4AC44rbtprDBVtGJ0+5Gr6GiGECp4ZXpQ9+w68EVt E7I9HDBLk0nIGAgrA6Id5HhOh2Y7q52APoCUOj7mbV+3rFBb/+99S+Yif5XX69YqZIo6 RybQ== X-Gm-Message-State: AOAM533VAUE9KzAskzDYutVNr0PeBlvCoOMwWqSTP5rWRpHAaX7tk1LB l+MPuY4kVpJgoSZaqPeTRxk= X-Received: by 2002:a17:90a:a4c6:: with SMTP id l6mr7360518pjw.91.1604336032479; Mon, 02 Nov 2020 08:53:52 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:53:52 -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 18/29] scsi: pm_8001: Drop PCI Wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:19 +0530 Message-Id: <20201102164730.324035-19-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 pm8001_pci_resume(), and there is no corresponding pci_enable_wake(...., true) in pm8001_pci_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 pm8001_pci__resume(). Signed-off-by: Vaibhav Gupta Acked-by: Jack Wang --- drivers/scsi/pm8001/pm8001_init.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 3cf3e58b6979..d47ed9a33173 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1327,7 +1327,6 @@ static int pm8001_pci_resume(struct pci_dev *pdev) "operating state [D%d]\n", pdev, pm8001_ha->name, device_state); pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); rc = pci_enable_device(pdev); if (rc) { -- 2.28.0