From patchwork Tue Apr 6 10:48:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Saenz Julienne X-Patchwork-Id: 12184829 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.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 A8733C433ED for ; Tue, 6 Apr 2021 10:51:21 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 42DB3613C6 for ; Tue, 6 Apr 2021 10:51:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42DB3613C6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=wz/hjHF45uiJJzLoOmcDyjzhQGUi7FvXA3W7pwxo+LM=; b=O3Jp2ypSJsXYZVnXUxNQ7RhnR NdXaSe5NnGl24Zmr3LPd/X1u+mytZCJytksW9byKZ9UPthDLl3hS4HHFBwzGlBHHkL3HgZZTrZxeW o4dGSChXed8/1s3JFkkcAan5nAHoZefYjSCITrVXU5H9ov5HprKPBsSIhG84M3Ybr+ZCJU8fmi8MV 0cD2PES+lJoOJPpoo9i/wIOLYe2It7pBxVZ7mEhT7pWfMohKlpkNGvFaLqAsvvqzhp6gMIA8rMmB+ scYYDi8BYgFBdP1Yq/GMXGnnCBKKg+gNlmj2Pl0D3n+T8Zk6dJl4BK3kL7FKejS6HiaWEO5vsg7di bpuKjkISQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lTjGk-002DTW-Jf; Tue, 06 Apr 2021 10:49:14 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lTjGf-002DRu-T6; Tue, 06 Apr 2021 10:49:11 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0CC99610C8; Tue, 6 Apr 2021 10:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617706148; bh=DFk3dXLYmsPJjfudy+xMdqagxU7hU8tqH5bkWHWtwnI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tFilJV3I5rZ6iIRvPY7OMr8e24p4PCHsJ9fqFmMwmXsdvnBPTAkgmmAIPf/axYU/N SufOyO6rPvvJZOQaHEXlI3bdj/1iiYFIGiUOhM4BP6eOx1SbL6qBmVPNyBwtMrb2jM TIxPbXUJ+7PrWAh2ApmOK7eNyBNRtKS+lnIZlo6KYt/oDT3hwlq1J+o4H/3SAbUJ/y 7LmZEbdSNm6hom2XkRJOl8t64xBHAGGxmoqC4l6dQZzDiN9gOYOVdXsvn/DD1UCfSD QfiIBdJkKHppOI51tcu2aTQbDteQZifT+RS7ckx/FbFklYYMFveIoGVRL6kT0WOZf4 /q93FGDWKYBUg== From: Nicolas Saenz Julienne To: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Ray Jui , Scott Branden , Saenz Julienne , Ulf Hansson , Stefan Wahren , Matthias Brugger , Adrian Hunter , Ray Jui , Scott Branden Cc: f.fainelli@gmail.com, phil@raspberrypi.com, tim.gover@raspberrypi.com, alcooperx@gmail.com, nsaenzjulienne@suse.de, linux-kernel@vger.kernel.org, robh@kernel.org, stefan.wahren@i2se.com Subject: [PATCH 3/3] mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711 Date: Tue, 6 Apr 2021 12:48:05 +0200 Message-Id: <20210406104802.20898-4-nsaenz@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210406104802.20898-1-nsaenz@kernel.org> References: <20210406104802.20898-1-nsaenz@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_114910_116118_9852F44C X-CRM114-Status: GOOD ( 10.68 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 1ef888e91f73..31f61ea474f0 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, };