]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] pcmcia: give socket time to power down
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>
Tue, 31 Jul 2007 07:38:08 +0000 (00:38 -0700)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Aug 2007 15:24:07 +0000 (17:24 +0200)
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 <daniel.ritz@gmx.ch>
Cc: Nils Neumann <nils.neumann@rwth-aachen.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/pcmcia/cs.c

index 606a467403389718a03f21bab041f61fde4caee4..2785d83018f6d5519b09873d778b9f8b99c0a8bf 100644 (file)
@@ -410,6 +410,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);