Re: Help needed, Re: [Bug #14334] pcmcia suspend regression from2.6.31.1 to 2.6.31.2 - Dell Inspiron 600m

From: Linus Torvalds
Date: Sat Oct 31 2009 - 17:58:13 EST




On Sat, 31 Oct 2009, Rafael J. Wysocki wrote:
>
> Yes, there is, because socket_early_resume() only does it in
> the (skt->state & SOCKET_PRESENT) case. If that bit is not set, the
> initialization is entirely postponed.

Ahh, ok. And what's the reason for that? It seems like the

skt->socket = dead_socket;
skt->ops->init(skt);
skt->ops->set_socket(skt, &skt->socket);

thing should always be safe, whether there is something present or not.. ?

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/