mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> CC: Linus Torvalds <[email protected]> Tested-by: Wolfram Sang <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
parent
f131ddc4bd
commit
88b060d6c0
4 changed files with 47 additions and 36 deletions
|
|
@ -137,6 +137,7 @@ struct pcmcia_socket {
|
|||
spinlock_t lock;
|
||||
socket_state_t socket;
|
||||
u_int state;
|
||||
u_int suspended_state; /* state before suspend */
|
||||
u_short functions;
|
||||
u_short lock_count;
|
||||
pccard_mem_map cis_mem;
|
||||
|
|
|
|||
Loading…
Reference in a new issue