From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: broken nouveau dependency on power supply Date: Mon, 02 Apr 2012 19:48:36 +1000 Message-ID: <1333360116.30734.50.camel@pasglop> References: <6373b480-2185-4651-b12d-8498c806ff69@zmail16.collab.prod.int.phx2.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by gabe.freedesktop.org (Postfix) with ESMTP id 40B7B9E9C4 for ; Mon, 2 Apr 2012 02:48:55 -0700 (PDT) In-Reply-To: <6373b480-2185-4651-b12d-8498c806ff69@zmail16.collab.prod.int.phx2.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie Cc: Woodhouse , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David@freedesktop.org, Anton Vorontsov , Linus Torvalds List-Id: dri-devel@lists.freedesktop.org On Mon, 2012-04-02 at 05:00 -0400, David Airlie wrote: > > - Better: Just make the bloody thing a bool :-) The power supply > > framework itself is small enough, just make it a boolean option and > > avoid the problem entirely. The actual power supply sub drivers can > > remain modular of course. > > We can just do select POWER_SUPPLY. Well, select'ing otherwise user configurable options was still frowned on last we discussed that... and it makes the whole inline stubs in power_supply.h totally pointless :-) > Yes it reduces the option range for some stupid corner case but really > I don't care, removing features from the kernel that a driver depends > on is just leading to insane state combination and QA problems. Well, the power supply stuff only works if you have a backend for it, which not all platforms are, and it's fairly safe to assume AC whenever it's not actually supported. (Talking of which, we should be able to do a PowerBook backend reasonably easily). I don't care which solution you guys end up choosing though, just fix it :-) Cheers, Ben.