Home Home > GIT Browse
diff options
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)
parenta14008cfca3a2026f09c91f2a96b26bcc507cd92 (diff)
[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>
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)
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);