Re: [PATCH]1/2: fix power manager recall problem.

From: Patrick Mochel (mochel@osdl.org)
Date: Sun Oct 20 2002 - 15:24:22 EST


> 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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:50 EST