Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic cope with card insertion/removal during suspend-r...



details:   https://anonhg.NetBSD.org/src/rev/0d00bfaca4c9
branches:  trunk
changeset: 481722:0d00bfaca4c9
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Feb 04 09:45:34 2000 +0000

description:
cope with card insertion/removal during suspend-resume session.
(removal/ insertion after suspend and before resume)

How should we deal with card swaps?

diffstat:

 sys/dev/ic/i82365.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r af29b1174173 -r 0d00bfaca4c9 sys/dev/ic/i82365.c
--- a/sys/dev/ic/i82365.c       Fri Feb 04 09:44:17 2000 +0000
+++ b/sys/dev/ic/i82365.c       Fri Feb 04 09:45:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82365.c,v 1.41 2000/02/04 08:42:07 chopps Exp $       */
+/*     $NetBSD: i82365.c,v 1.42 2000/02/04 09:45:34 itojun Exp $       */
 
 #define        PCICDEBUG
 
@@ -282,6 +282,14 @@
                                PCIC_CSC_INTR_FORMAT,
                                bitbuf, sizeof(bitbuf))));
                }
+
+               /*
+                * check for card insertion or removal during suspend period.
+                * XXX: the code can't cope with card swap (remove then insert).
+                * how can we detect such situation?
+                */
+               if (why == PWR_RESUME)
+                       (void)pcic_intr_socket(h);
        }
 }
 



Home | Main Index | Thread Index | Old Index