Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=afb2c1650b4c6f285596268d0a1de2a81542a765
Commit:     afb2c1650b4c6f285596268d0a1de2a81542a765
Parent:     5b232ecfd9ac55adb237e78482ed8f3d3becb0d8
Author:     Daniel Ritz <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:38:08 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:38 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: Nils Neumann <[EMAIL PROTECTED]>
    Cc: <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/pcmcia/cs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index 7c93a10..f8b13f0 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to