Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752143AbZGUOst (ORCPT ); Tue, 21 Jul 2009 10:48:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751350AbZGUOsq (ORCPT ); Tue, 21 Jul 2009 10:48:46 -0400 Received: from cpsmtpm-eml101.kpnxchange.com ([195.121.3.5]:52285 "EHLO CPSMTPM-EML101.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbZGUOsq (ORCPT ); Tue, 21 Jul 2009 10:48:46 -0400 From: Frans Pop To: Manuel Lauss Subject: Re: [PATCH] au1xmmc: dev_pm_ops conversion Date: Tue, 21 Jul 2009 16:48:43 +0200 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, manuel.lauss@gmail.com References: <1248115882-20221-1-git-send-email-manuel.lauss@gmail.com> <200907202200.39288.elendil@planet.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907211648.44433.elendil@planet.nl> X-OriginalArrivalTime: 21 Jul 2009 14:48:45.0243 (UTC) FILETIME=[590158B0:01CA0A12] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1538 Lines: 45 On Tuesday 21 July 2009, Manuel Lauss wrote: > >> -#ifdef CONFIG_PM > > > > Won't the removal of this test cause a build failure if CONFIG_PM is > > not set? If the removal of the test is safe, this should IMHO at > > least be explained in the commit message. > > No, it builds just fine without CONFIG_PM; it was there to shave off a > few bytes from the kernel image. But not everyone tests this driver > with CONFIG_PM=y, because apparently noone really needed PM on > this platform (Alchemy), and a full build of most of the boards using > this driver fails with PM enabled. OK. > This way the PM methods at least get a compile-test in the non-pm case. Not sure that is a sufficiently valid argument. In any case it *is* a separate change to "dev_pm_ops conversion" so it really should at least be documented and justified in the commit log. > I like what Magnus Damm did for some of the SuperH drivers: > > #ifdef CONFIG_PM > [...] > #define DRIVER_PM_OPS (&driver_pm_ops) > #else > #define DRIVER_PM_OPS NULL > #endif Yes, that's quite elegant. > I'd like to keep the pm stuff enabled at all times since it doesn't > hurt in the non-pm case and if kernel size becomes a problem I can add > the #defines back. I guess that's up to the maintainers of the mips port. Cheers, FJP -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/