From patchwork Wed Jan 5 19:32:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 454651 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 p05JWKkV019874 for ; Wed, 5 Jan 2011 19:32:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751523Ab1AETcU (ORCPT ); Wed, 5 Jan 2011 14:32:20 -0500 Received: from void.printf.net ([89.145.121.20]:48160 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409Ab1AETcT (ORCPT ); Wed, 5 Jan 2011 14:32:19 -0500 Received: from chris by void.printf.net with local (Exim 4.69) (envelope-from ) id 1PaZ5m-0002dI-Dh; Wed, 05 Jan 2011 19:32:18 +0000 Date: Wed, 5 Jan 2011 19:32:18 +0000 From: Chris Ball To: Guennadi Liakhovetski Cc: linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org, Ian Molton Subject: Re: [PATCH/RESEND] mmc: tmio_mmc: allow multi-element scatter-gather lists (fwd) Message-ID: <20110105193218.GA9198@void.printf.net> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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.3 (demeter1.kernel.org [140.211.167.41]); Wed, 05 Jan 2011 19:32:24 +0000 (UTC) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 9034414..4e75799 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -869,7 +869,8 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev) 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_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)