From patchwork Mon Apr 18 15:50:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Rigby X-Patchwork-Id: 1082 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:48:55 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.148 with SMTP id r20cs39110qai; Mon, 18 Apr 2011 08:50:36 -0700 (PDT) Received: by 10.42.131.193 with SMTP id a1mr2918448ict.50.1303141836227; Mon, 18 Apr 2011 08:50:36 -0700 (PDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by mx.google.com with ESMTPS id vu18si13016985icb.98.2011.04.18.08.50.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2011 08:50:36 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.178 is neither permitted nor denied by best guess record for domain of john.rigby@linaro.org) client-ip=74.125.83.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.178 is neither permitted nor denied by best guess record for domain of john.rigby@linaro.org) smtp.mail=john.rigby@linaro.org Received: by mail-pv0-f178.google.com with SMTP id 7so11131960pvg.37 for ; Mon, 18 Apr 2011 08:50:35 -0700 (PDT) Received: by 10.68.20.71 with SMTP id l7mr7321995pbe.293.1303141835653; Mon, 18 Apr 2011 08:50:35 -0700 (PDT) Received: from localhost.localdomain (c-76-23-54-220.hsd1.ut.comcast.net [76.23.54.220]) by mx.google.com with ESMTPS id t9sm2374620pbo.3.2011.04.18.08.50.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2011 08:50:34 -0700 (PDT) From: John Rigby To: u-boot@lists.denx.de, Andy FLeming Cc: patches@linaro.org, John Rigby Subject: [PATCHv2 2/2] mmc: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon Date: Mon, 18 Apr 2011 09:50:09 -0600 Message-Id: <1303141809-29449-2-git-send-email-john.rigby@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1302795971-31659-1-git-send-email-john.rigby@linaro.org> References: <1302795971-31659-1-git-send-email-john.rigby@linaro.org> Signed-off-by: John Rigby --- V2: split out omap_hsmmc use of b_max into separate patch drivers/mmc/omap_hsmmc.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index dcbde89..a2a6d55 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -467,6 +467,14 @@ int omap_mmc_init(int dev_index) mmc->b_max = 0; +#if defined(CONFIG_OMAP34XX) + /* + * Silicon revs 2.1 and older do not support multiblock transfers. + */ + if (get_cpu_rev() <= CPU_3XX_ES21) + mmc->b_max = 1; +#endif + mmc_register(mmc); return 0;