From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753863AbaLDKEY (ORCPT ); Thu, 4 Dec 2014 05:04:24 -0500 Received: from mail-ob0-f181.google.com ([209.85.214.181]:51165 "EHLO mail-ob0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753287AbaLDKEV (ORCPT ); Thu, 4 Dec 2014 05:04:21 -0500 MIME-Version: 1.0 In-Reply-To: <2647870.gu06V1GGvo@vostro.rjw.lan> References: <37310416.jZXoh5nfSC@vostro.rjw.lan> <3484329.phAPviVnbd@vostro.rjw.lan> <2647870.gu06V1GGvo@vostro.rjw.lan> Date: Thu, 4 Dec 2014 11:04:20 +0100 Message-ID: Subject: Re: [PATCH 1/4] PM: Drop the SET_PM_RUNTIME_PM_OPS() macro From: Ulf Hansson To: "Rafael J. Wysocki" Cc: Linux PM list , Linux PCI , Linux Kernel Mailing List , ACPI Devel Maling List , Alan Stern , Bjorn Helgaas , Kevin Hilman , Geert Uytterhoeven Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3 December 2014 at 23:51, Rafael J. Wysocki wrote: > On Wednesday, December 03, 2014 03:15:49 PM Ulf Hansson wrote: >> On 27 November 2014 at 01:38, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > The SET_PM_RUNTIME_PM_OPS() and SET_RUNTIME_PM_OPS() macros are >> > identical except that one of them is not empty for CONFIG_PM set, >> > while the other one is not empty for CONFIG_PM_RUNTIME set, >> > respectively. >> > >> > However, after commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if >> > PM_SLEEP is selected) PM_RUNTIME is always set if PM is set, so one >> > of these macros is now redundant. >> > >> > For this reason, drop SET_PM_RUNTIME_PM_OPS() and replace it with >> > SET_RUNTIME_PM_OPS() everywhere. >> >> Hi Rafael, >> >> Apparently, I have queued an mmc patch in my mmc tree, which means one >> mmc driver starts using the SET_PM_RUNTIME_PM_OPS macro. It should >> cause a build error in linux-next with @subject patch. >> >> I have shared that patch through an immutable branch, I have also >> checked potential conflicts and it shouldn't be any problems to pull >> that in to your tree. Then you can fix $subject patch by also >> converting the mmc driver to use SET_RUNTIME_PM_OPS macro. >> >> The branch is available at: >> git://git.linaro.org/people/ulf.hansson/mmc.git mmc_for_linux_pm > > Thanks for letting me know! > > What about adding the following line to the $subject patch instead: > > #define SET_PM_RUNTIME_PM_OPS SET_RUNTIME_PM_OPS > > and fixing things up when all has been merged? That's an option. On the other hand we will have a window of new users of SET_PM_RUNTIME_PM_OPS, during the next release cycle. Or are you saying that we should send fixes for the rc which takes care of the removal of it? Kind regards Uffe > > > -- > I speak only for myself. > Rafael J. Wysocki, Intel Open Source Technology Center.