Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 20 Oct 2002 16:15:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 20 Oct 2002 16:15:38 -0400 Received: from air-2.osdl.org ([65.172.181.6]:10112 "EHLO cherise.pdx.osdl.net") by vger.kernel.org with ESMTP id ; Sun, 20 Oct 2002 16:15:37 -0400 Date: Sun, 20 Oct 2002 13:24:22 -0700 (PDT) From: Patrick Mochel X-X-Sender: mochel@cherise.pdx.osdl.net To: Hu Gang cc: Linux Kernel , Pavel Machek Subject: Re: [PATCH]1/2: fix power manager recall problem. In-Reply-To: <20021019200104.650ba8bc.hugang@soulinfo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 930 Lines: 28 > first the we call device suspend it suspend pci device and other device, but when we call pm_send_all to pm_suspend, it retry to suspend pci device, here is the real problem. > This patch can fix it. Please apply. ... > + char *name = dev->bus->name; > + pr_debug("bus is %s\n", name); > + if (strncmp(name, "pci", 3) == 0) { > + pr_debug("skip pci bus\n"); > + continue; > + } This is a hack. the pm_* interface should not be used, as it cannot guarantee proper ordering when shutting down or resuming devices. If you experience problems, please remove the pm_send callbacks and make the drivers adhere to the new power management interface. Thanks, -pat - 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/