lkml.org 
[lkml]   [2002]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH]1/2: fix power manager recall problem.

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

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:0.039 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site