]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:36 +0000 (14:27 -0700)
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>
drivers/pcmcia/cs.c

index 50cad3a59a6c236696276bfd2a160cd00d770c17..1e03bbd32661cf91b0769fb7d132c3c35aca8363 100644 (file)
@@ -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);