Re: [BUG] sdhci regression in 2.6.21-rc2

Mark Lord
2007-03-05T16:18:15Z

Pierre Ossman wrote:
> Mark Lord wrote:
>
>> From linux/Documentation/power/pci.txt:
>>
> That conveniently leaves out the part of how to handle when we're not
> getting our stuff back. ;)
>
> But it seems to be the easier route anyway... I'll whip up a patch.

It's probably best all-round.

But another simpler way is to just set a global "am_suspended" bool
in the _suspend() code, and clear it again in the _resume() code,
and check it in the irq handler() code.

And the test for 0xffffffff (my simple patch) is probably good
to have regardless inside the irq handler().

Cheers