Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 330E2C00A89 for ; Mon, 2 Nov 2020 16:53:55 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC62C206F9 for ; Mon, 2 Nov 2020 16:53:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b7V5ebDK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC62C206F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A238086AA4; Mon, 2 Nov 2020 16:53:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZWsXR8pQdwRf; Mon, 2 Nov 2020 16:53:54 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4C22186A6F; Mon, 2 Nov 2020 16:53:54 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 41774C088B; Mon, 2 Nov 2020 16:53:54 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 449C7C0051 for ; Mon, 2 Nov 2020 16:53:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2F7CF86AA4 for ; Mon, 2 Nov 2020 16:53:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lUsO-JSEb3f9 for ; Mon, 2 Nov 2020 16:53:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by fraxinus.osuosl.org (Postfix) with ESMTPS id CEE0686A6F for ; Mon, 2 Nov 2020 16:53:52 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id o129so11618618pfb.1 for ; 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=cr6qjBSrjYX56b+CIr+waC4NZaPnWmlGpo0tLeZBFaN1WfoJJOQmG0vOaaIBYw/FA9 v1vJGq0SKxm07rrRBrjBlbxVXNlk0kxeQjvt6oWt4N9nhG7U3Ui1HmkHljO2wGZK+Nrq anI9Fj0YqalCVDK/rj+3ja1XTTlTZFZs0LnEkt5//L52AbD9l1XZZQTL//urpdwLoUwD Zt++ty8fPwRZrjqTACAoKwl46yNBFSaJMr3fKyvEkkYAFLg6vs4JH3A7TI3lLVy+EhIo J4ZjmzklMnzqStd5nxP7tz6R69Ren9koyMWWI5yjWlqK6zg3BA8f0U6Ke2mBZPHJz3tC vkyQ== X-Gm-Message-State: AOAM5337AK62Kn6fuRq4Gi9GR5Aok2sqR9sPldKuRcEcatXsgQAauSQr Eeq2+zg91Uey7yMq8I8s43o= X-Google-Smtp-Source: ABdhPJwsP+UyDRDmxoRtGAw+s8a66u11cnaGSNVCpQZuTJmTiL6Ebr0tI4XDNJ+fnuEGBgA7g0EPwQ== 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 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 Cc: linux-scsi@vger.kernel.org, MPT-FusionLinux.pdl@broadcom.com, esc.storagedev@microsemi.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, megaraidlinux.pdl@broadcom.com Subject: [Linux-kernel-mentees] [PATCH v4 18/29] scsi: pm_8001: Drop PCI Wakeup calls from .resume X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" 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 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees