From patchwork Fri Dec 30 15:24:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9492281 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 16BFC62AB9 for ; Fri, 30 Dec 2016 15:31:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 090D81FF35 for ; Fri, 30 Dec 2016 15:31:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1DFE20564; Fri, 30 Dec 2016 15:31:45 +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 8FB841FF35 for ; Fri, 30 Dec 2016 15:31:45 +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 1cMz3p-0006jW-Og; Fri, 30 Dec 2016 15:25:37 +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-0005Qi-KZ; Fri, 30 Dec 2016 15:25:26 +0000 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MQ5lz-1cR5uY0FaV-005Eaz; Fri, 30 Dec 2016 16:24:45 +0100 From: Stefan Wahren To: Eric Anholt , Gerd Hoffmann , Adrian Hunter , Ulf Hansson Subject: [PATCH 1/2] mmc: sdhci-iproc: Apply caps from bcm2835-mmc driver Date: Fri, 30 Dec 2016 15:24:32 +0000 Message-Id: <1483111474-29907-2-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:lPzyxLGXQoLCy8sNHTZeW+k1zGFuMPhqLYiVaHmK1iQdG1CQL+y Q/HxB4ntc9TbqYVZ1wSnVjOFdr9K6HVS1L3k40+F5QIQl2eBT7iU5Sn26bxx6hJ0shNcoWA EDxseJ4KiMK8ovU8mLO3OqJdy+QXmcF+fwxpd4DBkXTDTE3kSHFa0qrI1kheBw9yIe4v6HZ B0ljzqHtrcMPGyV7JDFIQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:Iw25Zu15xME=:4swN+c9/01eCxfrsLjzRoS L1hLy1igNmJTNS/QSZSCLobb87fOtH9VFg1cagZkj8HNyN6WM7JZQhtH9mDDvxsnztAlPp0Ux olcqsniCdDq3yz7heOyIgo9w6J3hYSR8Bd4m0Wt9WZ2KSiSA63cUk4YNtujzYGF4tJC1YDhu4 JrHoJBj++grL22SUc6qfJDO/kI1eiSibhBSICFe5zapo09mKWLjn4iewVx8Xuh53U/z9EZFuU /jiQle4v8qVK2LVN3md4ZigxGzyJvEiteLgqdV3SyUr/5LA/wUVIg9n8RVgz95w45LbOhRTxK QJpmxEvovMMguKvHOsmHXcjooghAdNAqNz51w3Ludq4aoUKTasbnYSh1XKzYfuCsiLU4fJH1E cghzYZ5jybCNfF5wK6hGDKHaw2VArFFqr5RNVaB0HGYUCwr9EAwgil0uEtm9gmfeCxYeO1gtj OkdF8t/jVll55VC7Ad0PRED4zYe30Wd8TPhs0TgaoNvv1NpyeQVmzRIdhCjpJpKcH5r3643J5 T5dyLN7WFjMfR2NKVPMScoBkIl2ex95hTkdq1UP1RECZ89OhhOzbnXPa89DNHjGbW3xpFEz00 pOc74SgIXbsBi8ggBrFoYylGmwY5dV4oFoe37gh/zsRGNwYYl3KOyURLOMZrOY06g3EjJ0SHO BcZsfWuyfHzWwMXohsXXN4sdMMNX5QXB51jOUE8afvoBqiojb7w1owJuc+uz4CPY0s1o= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161230_072526_062333_C7855971 X-CRM114-Status: UNSURE ( 8.71 ) 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 Since the mmc module on bcm2835 neither provide a capabilities register nor free documentation we must rely on the downstream implementation [1]. So enable the following capabilities for bcm2835: MMC_CAP_MMC_HIGHSPEED MMC_CAP_SD_HIGHSPEED MMC_CAP_DRIVER_TYPE_A MMC_CAP_DRIVER_TYPE_C [1] - https://github.com/raspberrypi/linux/blob/rpi-4.4.y/drivers/mmc/host/bcm2835-mmc.c Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-iproc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index d7046d6..30b3fdf 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -211,14 +211,17 @@ static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg) static const struct sdhci_pltfm_data sdhci_bcm2835_pltfm_data = { .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | - SDHCI_QUIRK_MISSING_CAPS, + SDHCI_QUIRK_MISSING_CAPS | + SDHCI_QUIRK_NO_HISPD_BIT, .ops = &sdhci_iproc_32only_ops, }; static const struct sdhci_iproc_data bcm2835_data = { .pdata = &sdhci_bcm2835_pltfm_data, - .caps = SDHCI_CAN_VDD_330, - .caps1 = 0x00000000, + .caps = SDHCI_CAN_VDD_330 | + SDHCI_CAN_DO_HISPD, + .caps1 = SDHCI_DRIVER_TYPE_A | + SDHCI_DRIVER_TYPE_C, .mmc_caps = 0x00000000, };