aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-01-02 08:14:23 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2010-01-17 12:30:12 -0500
commit88b060d6c03fcb9e4d2018b4349954c4242a5c7f (patch)
tree34954c1b7f1d4d978cae56ee40a9ab57829dccf2 /include
parentf131ddc4bd1713385c70606555d4d63bed5ec3fd (diff)
pcmcia: improve check for same card in slot after resume
During a suspend/resume cycle, an user may change the card in the PCMCIA/CardBus slot. The pcmcia_core can at least look at the socket state to check whether it is the same. For PCMCIA devices, move the detection and handling of such a change to ds.c. For CardBus devices, the PCI hotplug interface doesn't offer a "rescan" facility which also _removes_ devices no longer to be found behind a bridge. Therefore, remove and re-add all devices unconditionally. CC: Jesse Barnes <jbarnes@virtuousgeek.org> CC: Linus Torvalds <torvalds@linux-foundation.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include')
-rw-r--r--include/pcmcia/ss.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h
index cbfba885eb85..b0ebd11130cc 100644
--- a/include/pcmcia/ss.h
+++ b/include/pcmcia/ss.h
@@ -137,6 +137,7 @@ struct pcmcia_socket {
137 spinlock_t lock; 137 spinlock_t lock;
138 socket_state_t socket; 138 socket_state_t socket;
139 u_int state; 139 u_int state;
140 u_int suspended_state; /* state before suspend */
140 u_short functions; 141 u_short functions;
141 u_short lock_count; 142 u_short lock_count;
142 pccard_mem_map cis_mem; 143 pccard_mem_map cis_mem;