summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Ritz <daniel.ritz-ml@swissonline.ch>2007-07-31 00:38:08 -0700
committerWilly Tarreau <w@1wt.eu>2007-08-25 17:24:07 +0200
commit017ec3f52da373ba92db9537c9f1487363810a99 (patch)
tree8a0fccf5002e9784c4b31a3bf07f38c5a8cd78e6
parenta14008cfca3a2026f09c91f2a96b26bcc507cd92 (diff)
downloadlwn-017ec3f52da373ba92db9537c9f1487363810a99.tar.gz
lwn-017ec3f52da373ba92db9537c9f1487363810a99.zip
[PATCH] 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 <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>
-rw-r--r--drivers/pcmcia/cs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index 606a46740338..2785d83018f6 100644
--- a/drivers/pcmcia/cs.c
+++ b/drivers/pcmcia/cs.c
@@ -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);