From: MUNEDA Takahiro Subject: Re: [RFC][PATCH] acpiphp: configure _PRT Date: Fri, 03 Mar 2006 08:56:30 +0900 Message-ID: <87y7zs8kpd.wl%muneda.takahiro@jp.fujitsu.com> References: <873bi19ces.wl%muneda.takahiro@jp.fujitsu.com> <1141342449.913.7.camel@whizzy> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:16081 "EHLO fgwmail7.fujitsu.co.jp") by vger.kernel.org with ESMTP id S1751232AbWCBX4e (ORCPT ); Thu, 2 Mar 2006 18:56:34 -0500 Received: from m1.gw.fujitsu.co.jp ([10.0.50.71]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id k22NuWMF021905 for ; Fri, 3 Mar 2006 08:56:32 +0900 (envelope-from muneda.takahiro@jp.fujitsu.com) Received: from s4.gw.fujitsu.co.jp by m1.gw.fujitsu.co.jp (8.12.10/Fujitsu Domain Master) id k22NuWtL005763 for ; Fri, 3 Mar 2006 08:56:32 +0900 (envelope-from muneda.takahiro@jp.fujitsu.com) Received: from s4.gw.fujitsu.co.jp (s4 [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id DAA141CC0BD for ; Fri, 3 Mar 2006 08:56:31 +0900 (JST) Received: from ml2.s.css.fujitsu.com (ml2.s.css.fujitsu.com [10.23.4.192]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 9697B1CC0BC for ; Fri, 3 Mar 2006 08:56:31 +0900 (JST) In-Reply-To: <1141342449.913.7.camel@whizzy> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Kristen Accardi Cc: MUNEDA Takahiro , pcihpd-discuss@lists.sourceforge.net, Greg KH , linux-acpi@vger.kernel.org, len.brown@intel.com At Thu, 02 Mar 2006 15:34:09 -0800, Kristen Accardi wrote: > > I tested this on a couple laptops that have _DCK methods - It seems to > work fine, however, see comment below: Thanks for testing my patch and for feedback. > > > > Index: linux-2.6.16-rc5-mm1/drivers/pci/hotplug/acpiphp_dock.c > > =================================================================== > > --- linux-2.6.16-rc5-mm1.orig/drivers/pci/hotplug/acpiphp_dock.c > > +++ linux-2.6.16-rc5-mm1/drivers/pci/hotplug/acpiphp_dock.c > > @@ -290,6 +290,7 @@ handle_hotplug_event_dock(acpi_handle ha > > dbg("EJECT request\n"); > > if (!dock_in_progress() && dock_present()) { > > hotplug_pci(type); > > + acpiphp_bus_trim(handle); > > This is not necessary. hotplug_pci() will pass the eject event down to > the acpiphp handle_hotplug_event_func() routine, which will call > disable_device() and remove the bus that way as part of your new patch. OK, I mis-understood the dock eject routine. I'll remove it. > > undock(); > > eject_dock(); > > if (dock_present()) Thanks, MUNE