From patchwork Mon Mar 21 05:57:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 695 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:44:45 -0000 Delivered-To: patches@linaro.org Received: by 10.220.28.198 with SMTP id n6cs116697vcc; Sun, 20 Mar 2011 23:10:08 -0700 (PDT) Received: by 10.142.149.9 with SMTP id w9mr2905009wfd.12.1300687807964; Sun, 20 Mar 2011 23:10:07 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by mx.google.com with ESMTP id 39si13404158wfc.154.2011.03.20.23.10.07; Sun, 20 Mar 2011 23:10:07 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: from epmmp1 (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LIE00IOH94UDE70@mailout3.samsung.com>; Mon, 21 Mar 2011 15:10:06 +0900 (KST) Received: from Linaro.sisodomain.com ([107.108.215.143]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LIE00FI594M5K@mmp1.samsung.com>; Mon, 21 Mar 2011 15:10:06 +0900 (KST) Date: Mon, 21 Mar 2011 11:27:42 +0530 From: Chander Kashyap Subject: [PATCH] U-boot: MMC: s5p_mmc.c: Resolved Interrupt Error druring mmc_init To: samsung@lists.linaro.org Cc: patches@linaro.org, angus.ainslie@linaro.org Message-id: <1300687062-18593-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.1 Content-transfer-encoding: 7BIT Blocksize was hardcoded to 512 Bytes. It is now calculated based upon the request by mmc subsystem. Signed-off-by: Chander Kashyap --- drivers/mmc/s5p_mmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/s5p_mmc.c b/drivers/mmc/s5p_mmc.c index 195b5be..0323800 100644 --- a/drivers/mmc/s5p_mmc.c +++ b/drivers/mmc/s5p_mmc.c @@ -51,7 +51,7 @@ static void mmc_prepare_data(struct mmc_host *host, struct mmc_data *data) writeb(ctrl, &host->reg->hostctl); /* We do not handle DMA boundaries, so set it to max (512 KiB) */ - writew((7 << 12) | (512 << 0), &host->reg->blksize); + writew((7 << 12) | (data->blocksize & 0xFFF), &host->reg->blksize); writew(data->blocks, &host->reg->blkcnt); }