Re: [ibm-acpi-devel] [PATCH 2/2] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Maik Broemme
Hi, Christian Birchinger <[EMAIL PROTECTED]> wrote: > On Mon, Oct 15, 2007 at 06:33:15PM +0200, Thomas Renninger wrote: > > Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore > > it > > I think it's ok. dmesg says: > > ACPI: Video device VID not physically connected, ign

Re: [ibm-acpi-devel] [PATCH 2/2] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Christian Birchinger
On Mon, Oct 15, 2007 at 06:33:15PM +0200, Thomas Renninger wrote: > Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it I think it's ok. dmesg says: ACPI: Video device VID not physically connected, ignoring input: Video Bus as /devices/virtual/input/input11 ACPI: Video D

Re: [ibm-acpi-devel] [PATCH 1/1] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Thomas Renninger
On Tue, 2007-10-16 at 15:49 +0100, Matthew Garrett wrote: > On Tue, Oct 16, 2007 at 04:39:01PM +0200, Thomas Renninger wrote: > > > + /* > > +* Check whether we have really a graphics device physically > > +* in the slot and registered at the system. > > +*/ > > + dev =

Re: [ibm-acpi-devel] [PATCH 1/1] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Matthew Garrett
On Tue, Oct 16, 2007 at 04:39:01PM +0200, Thomas Renninger wrote: > + /* > + * Check whether we have really a graphics device physically > + * in the slot and registered at the system. > + */ > + dev = acpi_get_physical_device(device->handle); > + if (!dev) {

Re: [ibm-acpi-devel] [PATCH 1/1] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Thomas Renninger
On Tue, 2007-10-16 at 16:39 +0200, Thomas Renninger wrote: > On Mon, 2007-10-15 at 17:48 +0100, Matthew Garrett wrote: > > Why not just call acpi_get_pyhsical_device() on the appropriate handle > > and look at the struct device you get back? > Remember to put_device() it once you're done. First

Re: [ibm-acpi-devel] [PATCH 1/1] Recent Lenovo ThinkPads define a dummy grahpics device, find it and ignore it

2007-10-16 Thread Thomas Renninger
On Mon, 2007-10-15 at 17:48 +0100, Matthew Garrett wrote: > Why not just call acpi_get_pyhsical_device() on the appropriate handle > and look at the struct device you get back? Remember to put_device() it > once you're done. Yep, works great. I should have asked earlier for such a thing... Len

Re: [ibm-acpi-devel] [PATCH 1/2] Export a func to find the corresponding PCI bus:seg.func of an ACPI device

2007-10-16 Thread Shaohua Li
On Mon, 2007-10-15 at 17:48 +0100, Matthew Garrett wrote: > Why not just call acpi_get_pyhsical_device() on the appropriate handle > and look at the struct device you get back? Remember to put_device() > it > once you're done. Yes, for PCI bus, we already had a method to bind native device to ACP