From patchwork Thu Feb 10 10:40:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 546001 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1AAemWs016034 for ; Thu, 10 Feb 2011 10:40:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755870Ab1BJKko (ORCPT ); Thu, 10 Feb 2011 05:40:44 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:52996 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755219Ab1BJKko (ORCPT ); Thu, 10 Feb 2011 05:40:44 -0500 Received: by bwz15 with SMTP id 15so1947000bwz.19 for ; Thu, 10 Feb 2011 02:40:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to:cc :content-type; bh=E/TXsXBaELdraWzkI6p5uNa7eFcUEKJgjnXy0CekZ3w=; b=ngUb2Cpiu2sgTHFb/cRCeb0ZQHotwog90uERw1qDiB2FZeWiO4uEnqBXNl9Tn/n6nt pLdCLm+YKomD7xmBcVJZgmxt3nv6AJe1m4hUb20HkIiNsSVRDhXrGeaKLJoOcQ2sWnTg m2hTEanj8U7DSXAZ1oH+RUQ8rqJoQ5lpJwaR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=CuybJiw87s3ba6Efafg+4NOLbUI7gE4LLAyLYxw9xFvywzppAl/saNY5IhxUzdyZGY rio7ffZZhTbARcdDKks23c/UuazXzh6/sgUD+gWftRw/EdQd+Ukf0GPHk286WxvkW7+t roQd4MUXWu3BZlUUPQzcisU0Jolt//qQxUaE4= MIME-Version: 1.0 Received: by 10.204.75.142 with SMTP id y14mr5232021bkj.114.1297334442902; Thu, 10 Feb 2011 02:40:42 -0800 (PST) Received: by 10.204.75.70 with HTTP; Thu, 10 Feb 2011 02:40:42 -0800 (PST) Date: Thu, 10 Feb 2011 10:40:42 +0000 Message-ID: Subject: [PATCH 1/2] dw_mmc: Run card detect tasklet during slot initialisation. From: Will Newton To: linux-mmc@vger.kernel.org, Chris Ball Cc: Matt Fleming Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 10 Feb 2011 10:40:49 +0000 (UTC) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 2fcc825..0b0bedd 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1441,6 +1441,13 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) /* Card initially undetected */ slot->last_detect_state = 0; + + /* + * Card may have been plugged in prior to boot so we + * need to run the detect tasklet + */ + tasklet_schedule(&host->card_tasklet); + return 0; }