Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758680Ab2BJJYX (ORCPT ); Fri, 10 Feb 2012 04:24:23 -0500 Received: from smtp-out-146.synserver.de ([212.40.185.146]:1043 "EHLO smtp-out-146.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752765Ab2BJJYT (ORCPT ); Fri, 10 Feb 2012 04:24:19 -0500 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 26127 Message-ID: <4F34E28E.6080804@metafoo.de> Date: Fri, 10 Feb 2012 10:25:34 +0100 From: Lars-Peter Clausen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Iceowl/1.0b2 Icedove/3.1.16 MIME-Version: 1.0 To: linux-kernel@vger.kernel.org, Richard Purdie , Matthew Garrett Subject: Re: [PATCH 2/3] apple_bl: Rework in advance of gmux backlight support References: <1328300884-21551-1-git-send-email-seth.forshee@canonical.com> <1328300884-21551-3-git-send-email-seth.forshee@canonical.com> <4F2C5EC8.8090203@metafoo.de> <20120203225123.GD22758@ubuntu-macmini> <4F2D6A21.7030903@metafoo.de> <20120206145630.GC6414@ubuntu-macmini> <20120209172039.GB2515@ubuntu-macmini> In-Reply-To: <20120209172039.GB2515@ubuntu-macmini> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2729 Lines: 51 On 02/09/2012 06:20 PM, Seth Forshee wrote: > On Mon, Feb 06, 2012 at 08:56:30AM -0600, Seth Forshee wrote: >>>> Of course there are a couple of ways we could get around this. Not >>>> calling the backlight ops in the gmux case would be an option; then you >>>> don't get the check, but so far as I know right now the check doesn't >>>> work for the gmux backlight anyway. Or allocating the backlight device >>>> first before doing the check, but I don't see that as a good option. >>>> >>> >>> Hm, if that the check doesn't do anything for gmux is there acutally any code >>> shared between the gmux and the legacy path in the driver? If not would make >>> sense to put the gmux backlight support into its own driver? >> >> What I know is that the check doesn't work for the gmux on one >> particular model. On that machine the gmux device is present but doesn't >> control the backlight, yet reads and writes to the backlight ports >> behave the same as if it did control the backlight. That's the only >> model with a gmux that doesn't control the backlight that I've been able >> to get any testing on, so I don't know how other models behave. >> >> But you're right, by and large all the legacy and gmux paths share are >> boilerplate code, other than the fact that they support the same class >> of machines. The way apple_bl is done it seems natural to extended it >> with other backlight interfaces for Apple hardware, but an argument can >> be made for separting it out as well. > > I managed to get some more information that will allow me to do a sanity > check on the gmux. This will be completely separate from the check for > the legacy path, meaning they diverge even more. As a result I think I > will go ahead and put the gmux support in its own driver. This probably > makes the most sense anyway as the driver is likely to grow to include > support for the display mux functionality. > > But with it being its own driver, I don't think it really belongs in > drivers/video/backlight even though the driver will initially only > supply backlight control. Anyone have suggestions where a driver for a > display mux device should live? I'm not seeing anywhere that looks like > an obviously correct location. > drivers/platform/x86 might be a good place to start. This were all the laptop platform drivers go. But if the display mux is for switching between multiple video outputs it probably wants to be integrated with the DRM framework on the long run. - Lars -- 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/