aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/socket_sysfs.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-01-17 13:30:53 -0500
committerDominik Brodowski <linux@dominikbrodowski.net>2010-02-17 11:48:26 -0500
commitaf461fc1875b6ec18e23b5f670af36c4ed35c84e (patch)
treefa09a446c94d533c169b9e28e97c0e8c03d36912 /drivers/pcmcia/socket_sysfs.c
parentf971dbd5da4e2fbf756d07b938a9c65a9c75178b (diff)
pcmcia: delay re-scanning and re-querying of PCMCIA bus
After a CIS update -- or the finalization of the resource database --, proceed with the re-scanning or re-querying of PCMCIA cards only in a separate thread to avoid deadlocks. Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/socket_sysfs.c')
-rw-r--r--drivers/pcmcia/socket_sysfs.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/pcmcia/socket_sysfs.c b/drivers/pcmcia/socket_sysfs.c
index fba0e30183f4..08278016e58d 100644
--- a/drivers/pcmcia/socket_sysfs.c
+++ b/drivers/pcmcia/socket_sysfs.c
@@ -201,16 +201,7 @@ static ssize_t pccard_store_resource(struct device *dev,
201 s->resource_setup_done = 1; 201 s->resource_setup_done = 1;
202 mutex_unlock(&s->ops_mutex); 202 mutex_unlock(&s->ops_mutex);
203 203
204 mutex_lock(&s->skt_mutex); 204 pcmcia_parse_uevents(s, PCMCIA_UEVENT_REQUERY);
205 if ((s->callback) &&
206 (s->state & SOCKET_PRESENT) &&
207 !(s->state & SOCKET_CARDBUS)) {
208 if (try_module_get(s->callback->owner)) {
209 s->callback->requery(s, 0);
210 module_put(s->callback->owner);
211 }
212 }
213 mutex_unlock(&s->skt_mutex);
214 205
215 return count; 206 return count;
216} 207}