From patchwork Fri Dec 30 15:24:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9492273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8BA5862AB9 for ; Fri, 30 Dec 2016 15:29:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74276203C0 for ; Fri, 30 Dec 2016 15:29:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67FF1223B2; Fri, 30 Dec 2016 15:29:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 03192203C0 for ; Fri, 30 Dec 2016 15:29:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMz3j-0006a5-AQ; Fri, 30 Dec 2016 15:25:31 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMz3d-0005Qh-NJ; Fri, 30 Dec 2016 15:25:27 +0000 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M3B8p-1cdHB42qOt-00sxZR; Fri, 30 Dec 2016 16:24:45 +0100 From: Stefan Wahren To: Eric Anholt , Gerd Hoffmann , Adrian Hunter , Ulf Hansson Subject: [PATCH 2/2] mmc: sdhci-iproc: Increase max_blk_size for bcm2835 Date: Fri, 30 Dec 2016 15:24:33 +0000 Message-Id: <1483111474-29907-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1483111474-29907-1-git-send-email-stefan.wahren@i2se.com> References: <1483111474-29907-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:PXt5iKDe/BMKZwVVlilwH/AR7k4Q4lzlqLXxt35nzQp5xTRCtig fVxbw4+zlsaI2fDHsnm0no7AdrhrqUzGLvtBN5TXuzbO3zMNkZtqReOWsdPpa4Ea64Fp13C T5J8MEhvNVxaExO53SOqNUiGc0gBXy8R1R8liEieqZ6n9+zx61Bs4k5rdiB49KrXOUYIAY2 sZDZroHaliHsibDGzXZoQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:+kSPVz9fRAQ=:1iTOfNE6tdhN7ZzOFYvQGu cPXWR/+mEKRVy/5NhRbgZ+idf+r4ekdkzF2PX+Ae3/2hid19oyctiYDU4SAMcBoqCi0pBW6C+ RBE6N2OlKNIHr0w1Hlsb7+M/e3ho0WOJ00MQP74twGo+KmCAIMktPRzMhN5r2Olha70h9WLpR YlVyVmWGOguuR2fg183ESucTa1JAndf9ovM5J265tElkclJ3zId1T/bR1Dqz/UIStRFEAcIqL OwavpifrhlD2h401DcUtikWAz95IoL8YmHHM1PE3GIfIXNdU/u2UND4Fn20BMpc4cloaieSM5 BOvpftGdAAwSUplaN79T42JkkBiq1Mx9TIB2reEMBmeH4jKyCWiBlCb/9Rq3+HgfRJT+Oo3Zs adK4E9kuyctoMs+k80GyS5eA2fKPXAycuw5//WvNyKNQADelYnj91Am5nWAbzP6ZwIhVZyMXe hnhwatE0Hpk1q5TfsiUITOyKBQ5lLuoC+Xll37CuBPrk8OPsSUzWcZ5lgCsNsE86ocBG8GW9L HcwdtBAve8xaI/TsS0g/DHnB4yVGfZ2MdypN6BokNlYRmW4uG3Qfyeyo8IearUKrt6F/+XAda NGwKw2NoBCOCb1Rk/NzZOqURKRDOEevoN02GMZ9/3usA1HBj1DdEci11X3MJOr9lQObQGlfCi jitrCoaIwo6Y+7DBSurn4VYT9ARtBnVd9yg8YW46eKGzIBgUg+OD3BoeGbRjOpkDJG7s= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161230_072526_189543_AD5F1EEE X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , Scott Branden , Jon Mason , Ray Jui , linux-mmc@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP According to the BCM2835 datasheet the maximum block size for the eMMC module is restricted to the internal data FIFO which is 1024 byte. But this is still an improvement to the default of 512 byte. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt Acked-by: Scott Branden Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-iproc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 30b3fdf..3275d49 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -218,7 +218,9 @@ static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg) static const struct sdhci_iproc_data bcm2835_data = { .pdata = &sdhci_bcm2835_pltfm_data, - .caps = SDHCI_CAN_VDD_330 | + .caps = ((0x1 << SDHCI_MAX_BLOCK_SHIFT) + & SDHCI_MAX_BLOCK_MASK) | + SDHCI_CAN_VDD_330 | SDHCI_CAN_DO_HISPD, .caps1 = SDHCI_DRIVER_TYPE_A | SDHCI_DRIVER_TYPE_C,