From patchwork Mon Jul 4 07:07:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 941642 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p647dULZ002177 for ; Mon, 4 Jul 2011 07:39:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753755Ab1GDHja (ORCPT ); Mon, 4 Jul 2011 03:39:30 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:56077 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753288Ab1GDHja (ORCPT ); Mon, 4 Jul 2011 03:39:30 -0400 Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.72) (envelope-from ) id 1Qddkb-0001p7-PS; Mon, 04 Jul 2011 09:39:25 +0200 Received: from [12.23.102.153] (helo=sunrise.dsn.sec.samsung.com) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1Qdcwh-00037q-K5; Mon, 04 Jul 2011 15:47:51 +0900 From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: Chris Ball , Will Newton , Jaehoon Chung , Kyungmin Park , James Hogan , Seungwon Jeon Subject: mmc: dw_mmc: Add the function call for board-specific initialization. Date: Mon, 4 Jul 2011 16:07:59 +0900 Message-Id: <1309763279-29862-1-git-send-email-tgih.jun@samsung.com> X-Mailer: git-send-email 1.7.1 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 (demeter2.kernel.org [140.211.167.43]); Mon, 04 Jul 2011 07:39:31 +0000 (UTC) Need to call init() function of dw_mci_board. It seems to be omitted to call this function. Signed-off-by: Seungwon Jeon --- drivers/mmc/host/dw_mmc.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a524416..688d58a 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1585,6 +1585,15 @@ static void dw_mci_work_routine_card(struct work_struct *work) } } +static irqreturn_t dw_mci_detect_interrupt(int irq, void *dev_id) +{ + struct dw_mci_slot *slot = dev_id; + + queue_work(dw_mci_card_workqueue, &slot->host->card_work); + + return IRQ_HANDLED; +} + static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) { struct mmc_host *mmc; @@ -1657,6 +1666,8 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) } else regulator_enable(host->vmmc); + host->pdata->init(id, dw_mci_detect_interrupt, host); + if (dw_mci_get_cd(mmc)) set_bit(DW_MMC_CARD_PRESENT, &slot->flags); else