From: Daniel Ritz Date: Tue, 31 Jul 2007 07:38:08 +0000 (-0700) Subject: pcmcia: give socket time to power down X-Git-Tag: v2.6.23-rc2~109 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=afb2c1650b4c6f285596268d0a1de2a81542a765;p=linux-2.6-omap-h63xx.git pcmcia: give socket time to power down Give sockets up to 100ms of additional time to power down. otherwise we might generate false warnings with KERN_ERR priority (like in bug #8262). Signed-off-by: Daniel Ritz Cc: Nils Neumann Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index 7c93a108f9b..f8b13f0270d 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c @@ -409,6 +409,9 @@ static void socket_shutdown(struct pcmcia_socket *s) #endif s->functions = 0; + /* give socket some time to power down */ + msleep(100); + s->ops->get_status(s, &status); if (status & SS_POWERON) { printk(KERN_ERR "PCMCIA: socket %p: *** DANGER *** unable to remove socket power\n", s);