Re: [PATCH] PCI: Fix regression in pci_restore_state()

From: Linus Torvalds
Date: Sun Apr 15 2012 - 14:36:41 EST


On Sun, Apr 15, 2012 at 11:32 AM, Rafael J. Wysocki <rjw@xxxxxxx> wrote:
>
> To fix the regression, make pci_restore_state() only retry the
> writes for BAR registers and only wait if the first read from
> the register doesn't return the written value.  Additionally, make
> it use msleep() instead of mdelay() for waiting.

WHAT?

msleep() is the one that can sleep. So that part of the change is just
crazy. There's no way you can sleep during PCI register restore.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/