Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3436921pxx; Mon, 2 Nov 2020 08:52:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZwQvLCGAU2BL+zx6iefgIPuLVTLr89qPd8uQNVtTXMPEcFVnGXACZ+plDLmz963WB0rqe X-Received: by 2002:a17:907:411b:: with SMTP id nw19mr15621866ejb.150.1604335941866; Mon, 02 Nov 2020 08:52:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604335941; cv=none; d=google.com; s=arc-20160816; b=Y0XZLXajZ14GrjNX0iml7Eh9o1hGMgKTOjYQVXgLUP+QogXoPhB6D+wNzLqd5U310y o2OOdzMzQnBUoj8D80VM7b81lm+xcPUPNESIBeHa7q2qHgyZPpyvhc+kryJjnmpsWKLe vr2qQD/gUlVTjpZFLQrsgEEvT85F+CE/6HBgn/WYNzdTaQgfJDvixoP661bw42q6sp5F V5ngeTU0d5+XhL9Wq6HxIqPh8pq4waY1ANyxCPO//UnKR1MlTC/8gytVSlOkCH2X09BI 3JOr2ih51HnIVfZlV/z4IOaNzMcDrQ74wnHMBiyYcEcytFVadZQcPeJ2PzKUs1mdrxXT A0QA== 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=eVI1RgdCTcgKOQYTeMJvf6pf7gm9DRT8JtIKidpJzFw=; b=XGILChwX8cYLcFgEqobwSP7SZb0PWHNVRsvqCqbTM35bX0EJaM5s/E72Hy/xiA3O4c xDCk/IfOCo8iWUQscz9+YTjBU+hmVB9pD3BUWgDdWIF4rkPBW+C++aVgenJ/l4GiYdlV BDgDhRQvMXdvTWmvSOBR6LrgkWsW+96Hvcwkznmv4ltNazFbHmpzyhtXLj2+pCEbFRv8 uaRplStKfxREtp1Sawi/EgpSbGsYSefztp//SrVoVNf8rqBmRJE5tCTyVB5qsGuNJAwa U3kxRMZOrxvxhjwsF/qTeKVwMJbLjZAzXqUAQH7dEdjjXJTay9ccEHqYIRCIZ4xAyJFa BipQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o1vVtcE0; 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 pw16si10412415ejb.430.2020.11.02.08.51.59; Mon, 02 Nov 2020 08:52:21 -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=o1vVtcE0; 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 S1727198AbgKBQub (ORCPT + 99 others); Mon, 2 Nov 2020 11:50:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbgKBQua (ORCPT ); Mon, 2 Nov 2020 11:50:30 -0500 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35C5C0617A6; Mon, 2 Nov 2020 08:50:30 -0800 (PST) Received: by mail-pl1-x644.google.com with SMTP id t6so7084486plq.11; Mon, 02 Nov 2020 08:50:30 -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=eVI1RgdCTcgKOQYTeMJvf6pf7gm9DRT8JtIKidpJzFw=; b=o1vVtcE0URMlblenBRnxhQv+WgM1/34H7ENf+T6jvqYNL4Ji1VBlKPS1oMXYJ2aWyW NK/DV4SRSh+J8EOC3I9/1kRBQ7wyBgPQ9no4+U5sAsh42ryw8q3tsj7U8yvGUk1wOars qZt5hZUX15fvSrC6TLoj51YQu4QNGkj+OSo85oiqugyIKxty5w9yQm+q2f3eCusPsW1Z PBnu+O5hefQXc+E8y0mVQEjw45gBPEfvgCxuGmJEWOMe3N8nabHRI98VwK8wkURnJSxw eaAqYKq6AxzOfK3c6K9bSQ/NCf6gE11ArGXN3Izlko1WekyG2IkiVys9EO6Lo5DzzIBz P/Ag== 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=eVI1RgdCTcgKOQYTeMJvf6pf7gm9DRT8JtIKidpJzFw=; b=YOmLZxn0BQl5RPxxzI47h+zfkYBdxHnkDD9XPFHpj3H+YOZ0KH7bD16jBCpiF76giD bQlbxIWWl1/9MYHG9tGGdpcskkvG5PTDqsgEjOMOiLwq/mIlujcYy+LR93HXDQAchPcw wiPJvv5CDPBP+8s694b5Bs0wZoqPRMpAsw0UQfaK4qdKOXYSMspSdWHHRW7TJQviqKr+ Q1iZp/0mlJE9XogmhxeeImelMw1fSO7HRYa5YI66AkUnNLsIdzy7MyYBKdX2U6wW1ZKC gWmTTyDKRscCKO6ELOjMSPqr/Tvil1COj0kss3oGdYrh3B49Z96MUMs0rbyWqdzmLFJg GT9A== X-Gm-Message-State: AOAM532rRysNk9GhXpB9gCQnnjLDL/9R5x+pjQ4vaShJyiBko1k5WiUN j1LWayV539rqIJ2Ovpmp38Y= X-Received: by 2002:a17:902:6909:b029:d6:6ec4:e1f7 with SMTP id j9-20020a1709026909b02900d66ec4e1f7mr14716425plk.40.1604335830255; Mon, 02 Nov 2020 08:50:30 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:50:29 -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 01/29] scsi: megaraid_sas: Drop PCI wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:02 +0530 Message-Id: <20201102164730.324035-2-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 megasas_resume(), and there is no corresponding pci_enable_wake(...., true) in megasas_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 megasas_resume(). Signed-off-by: Vaibhav Gupta --- drivers/scsi/megaraid/megaraid_sas_base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 41cd66fc7d81..47ffdada541d 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -7668,7 +7668,6 @@ megasas_resume(struct pci_dev *pdev) host = instance->host; pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); dev_info(&pdev->dev, "%s is called\n", __func__); -- 2.28.0