Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3439639pxx; Mon, 2 Nov 2020 08:57:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcB1sgVx9IOE8MQVwDa+ObRNjc2yg4sfHr9XlvcpNqBBaXG4LAOw89AUctO/Ll9dMQ4122 X-Received: by 2002:a17:906:e10e:: with SMTP id gj14mr17107449ejb.134.1604336225861; Mon, 02 Nov 2020 08:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604336225; cv=none; d=google.com; s=arc-20160816; b=rYv0VJgM+HLBYPyCxBua9iEOVcHFQA2wHbrRVRww2Y0ogACHKuHrfkebo1o0Q2Rxh5 +aWIE/SuUJiXIsEgN+hXaNPJNjgLknTMv8ovqKALLo38jRiCziinNM2/vfMnzmpr0Pl6 ncWZktNsAvsKiWksA6FNRkVMGfZRu5EKtBS8OiUvArxBtezW83F3y6cP4mph0/CNIV4Q d2GT/vM0vfXiSQuIo+rcEcdDgFY4l6+BBepjJ+5vTShT0n9LORekYdNAqeiDjxmD3xf+ PDiYeyy1KTt7J48MvcfUKmuL5Lof0bLlv10WR5xyDg3OzyAKDiDae309AyfKdj1oXFJF JPyg== 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=6ccyY/JHq4D3PLCl7N5Le5xwodBVxQCbk5cLiaDjEFw=; b=XFV6x+BBPHFh3DfzgTKPIbE0LIrxoovBHk2VxYHbnC8rpyaTsNVO5pqCSpWxRA73QG w31ksY0CrYxD6DbodDMbl64XCqnEvdcTz3ql+iFxl2NOUn2oWRJfParLdPh8k8NwaKrq zm9tZKSPho5cPpNdhDqQdp5xdD8DC77j2WRoaT3+eqSsMBYEp4eXyygnsaThM1XVnMZP NOeQ2+ylsd+d4+IQyqKVV1+tF5ejHf9vng0z9/338sqe4HrHqw4JODzdGquEVNxKCfxa rV9QZ4mqdvVoBmdjju/s4A1TeD8smB3arduTbeuBqgVf0qdCC4Wk7FYjYWfXNvmPgGYh J3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NpW31TLe; 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 cq11si1681071edb.332.2020.11.02.08.56.43; Mon, 02 Nov 2020 08:57:05 -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=NpW31TLe; 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 S1727377AbgKBQyp (ORCPT + 99 others); Mon, 2 Nov 2020 11:54:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727172AbgKBQyo (ORCPT ); Mon, 2 Nov 2020 11:54:44 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5047C0617A6; Mon, 2 Nov 2020 08:54:44 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id o3so11269885pgr.11; Mon, 02 Nov 2020 08:54:44 -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=6ccyY/JHq4D3PLCl7N5Le5xwodBVxQCbk5cLiaDjEFw=; b=NpW31TLetItFsb140xAKZVbCVOKP2GAN9IMwURcruykGX00RcSle7+2EuM5I36CM8o fe4KsRaDfKtHUaTt5xVXCH2kez+BLnx9rJKFhORdMLQa+sk8W1vYH6YiTDcef8q2V1nl TUb30IC4T2Nfc+uLV0DYvKeXIHBywuPzlJoPTU+U8+zHYiyGEDA04TIpppSOGFkxexbh pGh73vWQpUaRpZ0IY9BxvFO5oZ4uB7CxqpYtva2SHbT1HQ+v+o8j8g0UTb+rkEAPvUH+ uaO2mHw4WvhZwEH8bDpx50oDS1g4G4FzH6lSucG9qGv8O1Aqk+f4J93leDCgYGD3nIcm IuCQ== 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=6ccyY/JHq4D3PLCl7N5Le5xwodBVxQCbk5cLiaDjEFw=; b=qM0ug096weLn6w5GT3rTvFwJ3HGTIKjq/2t7ltyS3m1RNVdcme0O96uuz5XPCKyysZ zp9kVQwtXbkhEZ7ApyYN1A4W16ADy3nZFMaTDKHNqppl4V2T+b6apzCOj5GIpaUWOTTe Qs5wbLEES0ccaZTk295LmlWufN/yaNJ8gXx7nRKz3hhIUNhBaAvIZSA96PWKe0JX5NI/ sxmoe04PP7YfAWp30M/sAGK/mhYMR4CV9/HpmqTOtpjUF4Lr/2MZlq2BOpFh/MVJwmAZ xAhMmrWj1mpNoB4U+bQeGF3e26z8vS7qJclQXte/koXilrOOWWij4bug77f8cdjGyddX whzg== X-Gm-Message-State: AOAM531HyrtWxvHIH231+q6dIjpvY54kUHvhaK3SUKz4JcOaZs1C4ClR D21DoAIhczSTmZKVBugKLuc= X-Received: by 2002:a17:90a:1188:: with SMTP id e8mr18750804pja.61.1604336084398; Mon, 02 Nov 2020 08:54:44 -0800 (PST) Received: from varodek.localdomain ([223.179.149.110]) by smtp.gmail.com with ESMTPSA id t74sm4953233pfc.47.2020.11.02.08.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 08:54:43 -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 23/29] scsi: 3w-sas: Drop PCI Wakeup calls from .resume Date: Mon, 2 Nov 2020 22:17:24 +0530 Message-Id: <20201102164730.324035-24-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 twl_resume(), and there is no corresponding pci_enable_wake(...., true) in twl_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 twl_resume(). Signed-off-by: Vaibhav Gupta --- drivers/scsi/3w-sas.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index dda6fa857709..0b4888199699 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c @@ -1795,7 +1795,6 @@ static int twl_resume(struct pci_dev *pdev) printk(KERN_WARNING "3w-sas: Resuming host %d.\n", tw_dev->host->host_no); pci_set_power_state(pdev, PCI_D0); - pci_enable_wake(pdev, PCI_D0, 0); pci_restore_state(pdev); retval = pci_enable_device(pdev); -- 2.28.0