Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp495931pxx; Wed, 28 Oct 2020 09:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/g5j40H9gOVzziUKAuvFe5f2vR2LJkZmIKYjUfMufSVbE52/M2C5otV7Cbu4QucC63M2l X-Received: by 2002:a50:d987:: with SMTP id w7mr8545340edj.113.1603903049552; Wed, 28 Oct 2020 09:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903049; cv=none; d=google.com; s=arc-20160816; b=h3cJru1KY27P0oOGU42rj8rgwpaIbO+qNTWft/n1/veVS1TUqiu/o3KmAqXZcke8V5 GGlWfx71Mxd+zLNJAal0VpRQQ97stjGGQQeBJ/QEaIrPcGSooHJyazFwHncpwMkWeOJu s1pARZmWPJyA55/iMNT1Mm3j9Tu0atov20SFORV2X1VFp6VgQBScWKKhkVil6wHg1NG0 w3mjiVYCAI6QHecLxT1j5nR9spQPsMtgZS5Lsunx2NfyfeY0qIlGv8sSLQ0EFRdGNY83 J2LvSPiwyZK1zllDpWOTJzO/VoB4pbXAKvWGCva+FkG46NIyeCpXtcEn91l4rqL5FyyB Qp5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=vGEzNmyL3dn0bRUuLQ0XqCugtDpZ7kSGquuadZ5dZQ4=; b=dME+IWABgTsCRAPI7IMGAMU6fSvOG7EcLYUdyj/3o5eSFvQhpkf18uX2XPmmAuW8kv LWZvRXEEcoFYXvdxGlxbnyTCIi4/c9ZgwrqFpPPnwQWc6u/FosWwxYECpLvl99M3jMZe +HyWv+ExA2YZtuCFgWLJ/364sniRob8Uqlwa4c8uZt47C2GYi5RvYzVCoTCgTbdAJmfF rzr62IMz4xo6EnyS+wUOyVjIgQZcy0ppe1uHshLIlUMh7YvO/kuwsikCF24gh4GrOX9S hUcjEjKX8KP1qvtyTfhBlnW5RRb9MyeYVgPyZm4E1ssANwg3s76cjRCeZbLyMpXDy95G +2oQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si3595446ejr.482.2020.10.28.09.37.07; Wed, 28 Oct 2020 09:37:29 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818132AbgJ0RRi (ORCPT + 99 others); Tue, 27 Oct 2020 13:17:38 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:3003 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1817285AbgJ0RPQ (ORCPT ); Tue, 27 Oct 2020 13:15:16 -0400 Received: from lhreml724-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id C9F69E427BAEC9A8B06E; Tue, 27 Oct 2020 17:15:14 +0000 (GMT) Received: from [10.47.8.138] (10.47.8.138) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Tue, 27 Oct 2020 17:15:12 +0000 Subject: Re: [PATCH v3 13/28] scsi: hisi_sas_v3_hw: use generic power management To: Vaibhav Gupta , 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 , Don Brace , James Smart , Dick Kennedy , Kashyap Desai , Sumit Saxena , Shivasharan S , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , Jack Wang CC: Shuah Khan , , , , , , , chenxiang References: <20201001122511.1075420-1-vaibhavgupta40@gmail.com> <20201001122511.1075420-14-vaibhavgupta40@gmail.com> From: John Garry Message-ID: <6115b301-680b-fb22-ae9e-2dea13b47536@huawei.com> Date: Tue, 27 Oct 2020 17:11:52 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20201001122511.1075420-14-vaibhavgupta40@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.8.138] X-ClientProxiedBy: lhreml715-chm.china.huawei.com (10.201.108.66) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/10/2020 13:24, Vaibhav Gupta wrote: > Drivers should do only device-specific jobs. But in general, drivers using > legacy PCI PM framework for .suspend()/.resume() have to manage many PCI > PM-related tasks themselves which can be done by PCI Core itself. This > brings extra load on the driver and it directly calls PCI helper functions > to handle them. > > Switch to the new generic framework by updating function signatures and > define a "struct dev_pm_ops" variable to bind PM callbacks. Also, remove > unnecessary calls to the PCI Helper functions along with the legacy > .suspend & .resume bindings. > > Signed-off-by: Vaibhav Gupta > --- Hi Vaibhav, Can you please consider rebasing this series? This driver has had many changes in the area of PM for v5.10-rc1 Also please note that my colleague provided a reviewed-by tag for v2, so, if no big significant changes from v2->v3, please add that tag. Obviously, in light of what I say about recent changes, that is not applicable now, but just for future reference. Thanks, John