Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3437989pxx; Mon, 2 Nov 2020 08:54:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXhqwvd4qW0HbZrV2qFZvFz1FyT0IuNss/SpvYWbs3kgUb1B6gzRHq47GS2dDFhk5zxh4i X-Received: by 2002:a50:f61a:: with SMTP id c26mr17734939edn.324.1604336057945; Mon, 02 Nov 2020 08:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336057; cv=none; d=google.com; s=arc-20160816; b=FPd2LCqU4YP40EoBqLYaVjvMCrdlqbc4oZ9j3+l63l0mbUa/R5WeJvXqlNSQYiMNhs sfymYhP1BU1lmqyuIH9H+8CcnqEx1fsvUXOn86gKzkR1ARqht80yzcTDQvdGD0xJbLBB JCrzQfTOdGMksg5xXYr2lkKmT/2szK3R1HAyaaBCkPK3jXWWTPS5549nL2SMhs1m2XTk TFsTzhNsfBS5UVowsC01zNZ2TPFRqLAxs+HsJj6wQV8x7qjFkcBSVxI6O+V/fuEcIuqX z+sQ+vsucW37HgZ3NJF7RNVafLjSpwbISWqqLdmyI641pAIRWMP5bkOKnKIIoFIC6e+j AwvA== 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=2BX3eBQ2Nj+GCCBpMWn5GHt7XwDnkItryaVyf4Y9S0I=; b=zo34ZIDsPINhEn1bquCMzMBY3TxOiTRHKNkeBbO3ANHD9uRYkVmPMPrG36vc+gpC6n hUVpwmXtp/vzyB4idqIfePKnhPID9yZbrggHERw3cdXjovA3bCm6GYC9dTaEglH9NMl3 80FyXvIbGoqnYyA74CgHa4KqoSmwycjbPVESDT/qAIzSZysZ+01Bd0rk3uBkqEVMA/Ot ORdmLn5IiDkrB3ijFu8eumhmxHeysoAnVrEvrIfnu3uJhfX/rgcvj6U1SBS+JVKq/odz 9nW3DWX3pZjAJXYp4sp5RUnTfUFBRt46FU/LhhwDuUDnDsD8WUsJ52y0XdQ9vQP1O6np KVhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IbZ0O0T8; 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 lt22si10372559ejb.30.2020.11.02.08.53.54; Mon, 02 Nov 2020 08:54:17 -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=IbZ0O0T8; 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 S1727375AbgKBQwF (ORCPT + 99 others); Mon, 2 Nov 2020 11:52:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbgKBQwE (ORCPT ); Mon, 2 Nov 2020 11:52:04 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471A8C0617A6; Mon, 2 Nov 2020 08:52:04 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id h6so11288247pgk.4; Mon, 02 Nov 2020 08:52:04 -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=2BX3eBQ2Nj+GCCBpMWn5GHt7XwDnkItryaVyf4Y9S0I=; b=IbZ0O0T8ZLpruZWx8PvK7pIXyCIC+2LArAr7gf2hEf6irIdajXFoOuZJTcnie4tIyf G1oLhRlByJxT057wMLQPeiSB92kNy/zw0tEC2IfA6CbIdp6SUrV4wqfX8P6+8Cpf+M8a GFrY3lYf01PJbkFZzZ+BzK7IJTAFCKFn2pLszTcpRuUxeUTgD8ZPZIPNZdiqT16U0CNs CRvJFySq8CxeR1BOep9PQjpP6lR3EDeAdABou7VZBITnUMR3mov86UKVWsuKRT+g7sB9 zXfDZNKgTsb6qXDtavgABdOmqU8ZEYoYP13Iq49TK5NIzr090H/NHAFkHUtljj6QeawQ yz4g== 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=2BX3eBQ2Nj+GCCBpMWn5GHt7XwDnkItryaVyf4Y9S0I=; b=augjeg4vwXr6owyf3qgiRQ6E/lQ/eRFrpXiG4ET1weSEuOB9Rs4MV7jDwpvbKxdPeH YApT6z4avuRh6XAUki6s58aZmp8KTHHMjdRuc07psyH+o5KuDt/Mv01jIm7/vTcNim0E YSyzEF52WiHWrfWYg1DiBW6gQrdrxjyhjnZQPIaZO+KqLR8Z5LWMwwkLQIZ9Veucojn9 Wz4N4yNZVIl/6jgZt0fWlMM3cbyS/qF+gMlKOQL6a5lAk5ehtUsP/qRDaw8B9N83J4yI F1Xs+CRCVEoLe2Owxc6gOO2FSP+nLchmX+i6T6/+KM6d+RDFQiSCaYUiuStrRILLhXw/ kWGQ== X-Gm-Message-State: AOAM532tRFi40NV2GSJkasyI2Yz1UW4weKreWWU/GLLcBo34DQx+TaOr zSxyEYXa2RbUFUZBXIbaR1U= X-Received: by 2002:a17:90b:11cc:: with SMTP id gv12mr4371225pjb.132.1604335923821; Mon, 02 Nov 2020 08:52:03 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:52:03 -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 08/29] scsi: arcmsr: Drop PCI wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:09 +0530 Message-Id: <20201102164730.324035-9-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 arcmsr_resume(), and there is no corresponding pci_enable_wake(...., true) in arcmsr_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 arcmsr_resume(). Signed-off-by: Vaibhav Gupta --- drivers/scsi/arcmsr/arcmsr_hba.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index e4fdb473b990..c7ba4cbd197b 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -1154,7 +1154,6 @@ static int arcmsr_resume(struct pci_dev *pdev) (struct AdapterControlBlock *)host->hostdata; pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); if (pci_enable_device(pdev)) { pr_warn("%s: pci_enable_device error\n", __func__); -- 2.28.0