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

Patrick Mochel (mochel@osdl.org)
Sun, 20 Oct 2002 13:24:22 -0700 (PDT)


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