Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755136Ab1BGWFG (ORCPT ); Mon, 7 Feb 2011 17:05:06 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:51659 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755064Ab1BGWFE (ORCPT ); Mon, 7 Feb 2011 17:05:04 -0500 From: "Rafael J. Wysocki" To: Matthew Garrett Subject: Re: [PATCH 5/5] ACPI: Tie ACPI backlight devices to PCI devices if possible Date: Mon, 7 Feb 2011 23:04:56 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.38-rc3+; KDE/4.4.4; x86_64; ; ) Cc: Bjorn Helgaas , dri-devel@lists.freedesktop.org, akpm@linux-foundation.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, rpurdie@rpsys.net, Len Brown References: <1295033065-13450-1-git-send-email-mjg@redhat.com> <201102071432.35656.bjorn.helgaas@hp.com> <20110207213426.GA23843@srcf.ucam.org> In-Reply-To: <20110207213426.GA23843@srcf.ucam.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102072304.57030.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 31 On Monday, February 07, 2011, Matthew Garrett wrote: > On Mon, Feb 07, 2011 at 02:32:35PM -0700, Bjorn Helgaas wrote: > > > I'm not familiar with video devices, but I agree, this situation does > > feel broken. Is it the case that there's a PCI device as well as an > > ACPI namespace Device for the same piece of hardware? If so, I assume > > the reason for the ACPI Device is to have a "standard" interface to > > a platform knob like backlight control. > > > > In that case, it seems like we should rely on PCI for enumeration and > > driver binding, have some sort of hook the PCI driver could use to > > twiddle that knob (using the ACPI methods), and make the ACPI Device > > ineligible for driver binding. In other words, it sounds like part > > of the problem is that we have two drivers binding to what's really > > a single piece of hardware. > > Part of the problem is that ACPI video devices aren't inherently PCI > devices. To me, this really isn't about video devices. The problem is that objects of type struct acpi_device are treated _differently_ depending on the context. In the meantime I've reviewed the code a bit and noticed that there's a parent pointer in struct acpi_device, which basically duplicates the device tree dependency, so it looks like the embedded dev in struct acpi_device is really redundant. -- 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/