Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2050279pxa; Sun, 16 Aug 2020 21:55:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdifPvVfxt3LK0Zk7W6EROdogqhFSFJ57mvLlPaPrqxlOLUo42/X2jJf9LMkv47XsToAwz X-Received: by 2002:a17:906:4a0d:: with SMTP id w13mr6139095eju.247.1597640127289; Sun, 16 Aug 2020 21:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597640127; cv=none; d=google.com; s=arc-20160816; b=rNxQ/E2+U7UYX0wL2xS9zkyJXxg53arH7eXffkw1AESPy56nAWLdYIr49+c3JQnDZr uVkyTfEi/nTS5XuZREsCixfngbZXftbtcuSdlwsOXru/VSoe/5KCkbdqywef2ZjyzEXS KR3oop376TuibbE2xrympADeOIWUaJbTsQnXUhTrO+hh7Up5lgjZJ8Gsiu5jPLTMK9nC zwOmOQwOP5nmZr/3ZYD2HwyPp1YJEGJ0gpxzm7HEs/ik6g4XQMqKK8aDDUerdwff2xPt pVyeMKbZf+qbaeM6uVAB/xfBbHz1HDKK0wuyvj5UTek5TOG/nztPKSYtzDlC3ndzNa5L 6DwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/Hy9iMIr2wulxkiAXr4qt9xDwzzpIRzYpK6HW3COd48=; b=lxUI30/VySF/XRMSwdi/BkgBehO7stmpvmkOeMVYFhPix124s+JBJtG/62lLJBFyBd ThAoLZkVyvHEbQkpUByWguZ6ItRwMS4UCrhD51qGzNFjgW8iX6U1jwsSwaHrvR0fcomO HxHk4IYL2NlfzvJSEetdBE6e17bDJ7FDU9h36IWIzL8klBf0Z7RPo6uUsSVBLNBE//mn mdFlO7rJWfRfuaTomb98X+t7TSN8wsSr2Ugpl5sJzuIMSCVgnleqGCekiamJmKWoaXL1 Zm5lBi3RoYCS2Fc95hhAl8I+MXqx2zMWxChwjTLxgEsgb8xXimGZB7H3ZJ8zBSCrPcds y6nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P3ZDjpHv; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si10329092ejx.477.2020.08.16.21.55.04; Sun, 16 Aug 2020 21:55:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=P3ZDjpHv; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726203AbgHQEyX (ORCPT + 99 others); Mon, 17 Aug 2020 00:54:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:40854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgHQEyX (ORCPT ); Mon, 17 Aug 2020 00:54:23 -0400 Received: from localhost (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C975C206FA; Mon, 17 Aug 2020 04:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597640062; bh=dhDoHPim08T8tQIOUPSLJcDdqrcHotj1Ty6KdND+evs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P3ZDjpHvPf4QPepi2druAftU5PC//2v6z+wnDnBJU9eyp3MLwFmJeYK/SWFUuFL2r jpLrZNibJv4mG4kYUbOvL7yvp+gsoIHqDlb4BWX0bTFNmkklf7Aj6OcL6Uvc6L8o+d Q9VSiOwmzAqf+ZanDZnNC7f1Qx+mkLQgB5AYNwKs= Date: Mon, 17 Aug 2020 10:24:18 +0530 From: Vinod Koul To: Andy Shevchenko Cc: Vaibhav Gupta , Bjorn Helgaas , Bjorn Helgaas , Bjorn Helgaas , Vaibhav Gupta , Dan Williams , Shuah Khan , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, dmaengine Subject: Re: [PATCH v1] dmaengine: pch_dma: use generic power management Message-ID: <20200817045418.GC2639@vkoul-mobl> References: <20200720113740.353479-1-vaibhavgupta40@gmail.com> <20200727085621.GL12965@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27-07-20, 14:19, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 1:16 PM Vinod Koul wrote: > > On 20-07-20, 17:07, Vaibhav Gupta wrote: > > > Drivers using legacy PM have to manage PCI states and device's PM states > > > themselves. They also need to take care of configuration registers. > > > > > > With improved and powerful support of generic PM, PCI Core takes care of > > > above mentioned, device-independent, jobs. > > > > > > This driver makes use of PCI helper functions like > > > pci_save/restore_state(), pci_enable/disable_device(), > > > and pci_set_power_state() to do required operations. In generic mode, they > > > are no longer needed. > > > > > > Change function parameter in both .suspend() and .resume() to > > > "struct device*" type. Use dev_get_drvdata() to get drv data. > > > > You are doing too many things in One patch. Do consider splitting them > > up to a change per patch. for example using __maybe could be one patch, > > removing code is suspend-resume callbacks would be other one. > > Vinod, while I completely agree with you in general, in this case it > would make more unnecessary churn and will be rather unhelpful in all > ways: for the contributor to do this work, for the reader to collect > all the pieces. It also will be a bisectability issue, because the > #ifdeffery replacement (IIRC you need to move from CONFIG_PM to > CONFIG_PM_SLEEP). I really don't see any advantages of the splitting > here. > > > > Compile-tested only. > > > > I would like to see some testing before we merge this > > I have hardware to test (Intel Minnowboard v1) but have no time. And > taking into account that I did similar changes for many other drivers, > I can give my > Reviewed-by: Andy Shevchenko > and take responsibility if somebody complains in the future (I don't > believe it will be one). > > P.S. Another scenario if Vaibhav can find that board (there were > dozens of thousands at least produced and floating on the second hand > market) and test himself. It may be good since he touches the full lot > of PCH (EGT20) drivers. Applied now, thanks -- ~Vinod