From: Dominik Brodowski Date: Sat, 2 Jan 2010 13:14:23 +0000 (+0100) Subject: pcmcia: improve check for same card in slot after resume X-Git-Tag: v2.6.34-rc1~270^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b060d6c03fcb9e4d2018b4349954c4242a5c7f;p=pandora-kernel.git 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 CC: Linus Torvalds Tested-by: Wolfram Sang Signed-off-by: Dominik Brodowski --- Reading git-diff-tree failed