From patchwork Thu Nov 11 11:13:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 317132 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 oABBDW8E021195 for ; Thu, 11 Nov 2010 11:13:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755560Ab0KKLNT (ORCPT ); Thu, 11 Nov 2010 06:13:19 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:52420 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1755278Ab0KKLNK (ORCPT ); Thu, 11 Nov 2010 06:13:10 -0500 Received: (qmail invoked by alias); 11 Nov 2010 11:13:07 -0000 Received: from p50898DEB.dip0.t-ipconnect.de (EHLO axis700.grange) [80.137.141.235] by mail.gmx.net (mp024) with SMTP; 11 Nov 2010 12:13:07 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX184lXFrvkA4XabXv2ZRjZYFb4x+YlUfZJUSk/H8dJ kudI1tqOtSWDgc Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1PGV5f-0000hJ-3d; Thu, 11 Nov 2010 12:13:15 +0100 Date: Thu, 11 Nov 2010 12:13:15 +0100 (CET) From: Guennadi Liakhovetski To: mmc@axis700.grange cc: linux-sh@vger.kernel.org, Ian Molton Subject: [PATCH] mmc: tmio_mmc: allow multi-element scatter-gather lists Message-ID: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 11 Nov 2010 11:13:33 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index e7765a8..9034414 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -864,10 +864,14 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev) goto host_free; mmc->ops = &tmio_mmc_ops; - mmc->caps = MMC_CAP_4_BIT_DATA; - mmc->caps |= pdata->capabilities; + mmc->caps = MMC_CAP_4_BIT_DATA | pdata->capabilities; mmc->f_max = pdata->hclk; mmc->f_min = mmc->f_max / 512; + mmc->max_segs = 32; + mmc->max_blk_size = 512; + mmc->max_blk_count = PAGE_CACHE_SIZE / mmc->max_blk_size * mmc->max_segs; + mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; + mmc->max_seg_size = mmc->max_req_size; if (pdata->ocr_mask) mmc->ocr_avail = pdata->ocr_mask; else