Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753341AbYJNVgX (ORCPT ); Tue, 14 Oct 2008 17:36:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751007AbYJNVgP (ORCPT ); Tue, 14 Oct 2008 17:36:15 -0400 Received: from sj-iport-3.cisco.com ([171.71.176.72]:16380 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750954AbYJNVgO (ORCPT ); Tue, 14 Oct 2008 17:36:14 -0400 X-IronPort-AV: E=Sophos;i="4.33,410,1220227200"; d="scan'208";a="108496814" From: Roland Dreier To: Oliver Neukum Cc: Linux Kernel Mailing List Subject: Re: question about pci_disable_device References: <200810131947.44992.oliver@neukum.org> X-Message-Flag: Warning: May contain useful information Date: Tue, 14 Oct 2008 14:36:13 -0700 In-Reply-To: <200810131947.44992.oliver@neukum.org> (Oliver Neukum's message of "Mon, 13 Oct 2008 19:47:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 14 Oct 2008 21:36:13.0925 (UTC) FILETIME=[E1E42950:01C92E44] Authentication-Results: sj-dkim-3; header.From=rdreier@cisco.com; dkim=pass ( sig from cisco.com/sjdkim3002 verified; ); Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 669 Lines: 19 > could somebody explain what determines when in the sequence of hot > unplugging pci_disable_device() is called? I'm not positive about this, but pci_disable_device() should be called as part of the device's driver's .remove method, which is called from the sequence: hotplug driver -> pci_remove_bus_device() -> pci_destroy_dev() -> pci_stop_dev() -> device_unregister() - R. -- 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/