From patchwork Tue Apr 19 15:48:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Rigby X-Patchwork-Id: 1098 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:49:07 -0000 Delivered-To: patches@linaro.org Received: by 10.224.67.148 with SMTP id r20cs75853qai; Tue, 19 Apr 2011 08:48:58 -0700 (PDT) Received: by 10.68.20.199 with SMTP id p7mr9366773pbe.40.1303228137739; Tue, 19 Apr 2011 08:48:57 -0700 (PDT) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id d4si22347pbg.206.2011.04.19.08.48.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 08:48:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of john.rigby@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of john.rigby@linaro.org) smtp.mail=john.rigby@linaro.org Received: by pxi6 with SMTP id 6so9286592pxi.17 for ; Tue, 19 Apr 2011 08:48:56 -0700 (PDT) Received: by 10.68.41.168 with SMTP id g8mr8684222pbl.194.1303228135981; Tue, 19 Apr 2011 08:48:55 -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 g3sm13257pbl.92.2011.04.19.08.48.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Apr 2011 08:48:55 -0700 (PDT) From: John Rigby To: u-boot@lists.denx.de, Andy FLeming Cc: patches@linaro.org, John Rigby Subject: [PATCHv3 2/2] MMC: omap_hsmmc.c: disable multiblock rw on old rev omap34xx silicon Date: Tue, 19 Apr 2011 09:48:14 -0600 Message-Id: <1303228094-18407-1-git-send-email-john.rigby@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1303141809-29449-2-git-send-email-john.rigby@linaro.org> References: <1303141809-29449-2-git-send-email-john.rigby@linaro.org> Signed-off-by: John Rigby --- V3: use get_cpu_family and get_cpu_rev in test, previous patch also disabled multiblock on beagle-xm 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..957b987 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_family() == CPU_OMAP34XX) && (get_cpu_rev() <= CPU_3XX_ES21)) + mmc->b_max = 1; +#endif + mmc_register(mmc); return 0;