From patchwork Sat Aug 7 11:06:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12424327 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1925BC4338F for ; Sat, 7 Aug 2021 11:11:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B799160EEA for ; Sat, 7 Aug 2021 11:11:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B799160EEA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=i2se.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XK4QT+EskqVBvhUnleHw3QCd/5DV1jMaFGgi1wRi0/Y=; b=If9GD4T6m9MXOg HIJNRYlwh+WaI6RtX/l/yEY9IelaigLR3eLyzncuNQ8sO9VGqwVTSoORf6/ipJh6wy+ANZyS/y+OM jpiEON5Ah9QNusy3pu9FNGCJCSd7IqFH/jHwUfOcmAF/m4aA+MxdNp4A19AUS/VdLv9F25ARIofmf 8/74UN8Ug9XIBBO89DtSiUv5R0iq7SEbY0nwLyCCzE9FV0MP7Ami5LgKtCNy64+Toepishse/zt7x S2gcIICwJjZfbeetAps1qXmrVi4tX/lenKz2Qd2ExoHZfTIJn4lGSTIrJfOf0lt3gBIrf6U9Rkmun PyE0iYe55En4ESGZwaXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCKD7-00EdnL-MU; Sat, 07 Aug 2021 11:09:50 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCKAl-00EclN-Jk; Sat, 07 Aug 2021 11:07:25 +0000 Received: from localhost.localdomain ([37.4.249.97]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MAOeB-1mIbhd344x-00BwOU; Sat, 07 Aug 2021 13:07:10 +0200 From: Stefan Wahren To: Rob Herring , Nicolas Saenz Julienne , Florian Fainelli , Adrian Hunter , Ulf Hansson Cc: Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Maxime Ripard , iivanov@suse.de, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V2 05/10] mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711 Date: Sat, 7 Aug 2021 13:06:36 +0200 Message-Id: <1628334401-6577-6-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1628334401-6577-1-git-send-email-stefan.wahren@i2se.com> References: <1628334401-6577-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:u0dsEv9jFM+tW+Sg1Dp3uVwEizVQrVB28BJ35SkprIsS+lWZL+/ QbkH8H57xvdZE34nPO+nJwt9cJP21qQUWf9Lc/tTJyZPLiu0U5Hukyps95nBDkhPrzIZeAD RLy8p9Be0C2k5HMQCDa50/mnBxZJFR4bYKQvrc/EIslGjFMfPrnOVXAl6n+2MIjTffERJt/ /81T3awZ6H1FhMaL8Ielw== X-UI-Out-Filterresults: notjunk:1;V03:K0:SKENu3phtEQ=:9NLKQGVRYLgrZ3PQ8+QXiy kfotEGl1sQEcA3qstF0HDGvz3Wdkc+xOaxVgyLenGayUnzVh/Scm+nn07evH5988ZmRJzMrzc GgLawXLjDa37UvDL5NcG7enhWwA29GDPZWLyk3aiKNR/B5cASF41lZCWfCPisJOuTWhv+CDoi 2nxkMgPiF9WtSTyZip/xWUQUoa36py3KFHDkY2OJfw9tmuZNHtxXieUv8olRsOZycRUdHp3g8 FK5wLXjCFgyOq/IX5cdUmAhDHXwUwxOLALJX/QeE5Ccw2nBdpUb/6feyLk4cm81rpai9TOM/s UyjiPwmuh5WzIM/dSerG7nsZR1Xd2aN/TMAqkWKRx5rNdSMxO//HsV05m0/FA8EFtxIIBARtN VrkXSbn0FcBRag01meD6ntB2GQi6jO+7VIErMw2BQRy72oDLJw5GvI3jPVvvyt5q9kkM63JdO IU1M3RPe8adcz8Kn2EFfs8dVX8oLiYokEk9uy+lm6ykaPnjPplkrZtu9Po3SSdBE9rtJ3nejU AlahHNZxlqR+kuHLj8zl+oxyd0uXbgbahksm4m0Pv7xwiQ40QR7QZnZ405+CfAECBmNwI+68H tlxC8XTICgN2XeMmwmKdJ96msjrBX6etIzGwWTJECGj+wmrJ1G6J26FKMTKh3itOuYQw+WJVL /kJFCEseOjgRvMlj/W0/09w/ciH9uYj2+cm7p/Fvnyp1RvrYEqEEgZjBpCdyz1kmlFo5rNeXa MoiW6Sz25svrklg6KcYn2m5eazlT+rjXiC8cfjQGdU5sKAPQJWqGU7nVkFO8y4kKVvqneoSK2 OhduJAS/F3qbNhaBhv6cZsrvNOlrrzgtnIdCn3SlLKpaEbHBN9geLB9ZyMB77KFSp061oieKT nkyWRCOt8rziBz6VtvUQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210807_040724_034574_2784CA05 X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Saenz Julienne The controller doesn't seem to pick-up on clock changes, so set the SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN flag to query the clock frequency directly from the clock. Fixes: f84e411c85be ("mmc: sdhci-iproc: Add support for emmc2 of the BCM2711") Signed-off-by: Nicolas Saenz Julienne Signed-off-by: Stefan Wahren --- drivers/mmc/host/sdhci-iproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-iproc.c b/drivers/mmc/host/sdhci-iproc.c index 032bf85..e7565c6 100644 --- a/drivers/mmc/host/sdhci-iproc.c +++ b/drivers/mmc/host/sdhci-iproc.c @@ -295,7 +295,8 @@ static const struct sdhci_ops sdhci_iproc_bcm2711_ops = { }; static const struct sdhci_pltfm_data sdhci_bcm2711_pltfm_data = { - .quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12, + .quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 | + SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, .ops = &sdhci_iproc_bcm2711_ops, };