Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2902517pxb; Tue, 24 Aug 2021 10:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl7ud+4UB194a/PT4UVSgNdNZWUaKcHgP4rFbyGdpNzevqwis/tmTewm3DosZTsw2AJqrc X-Received: by 2002:a6b:e50e:: with SMTP id y14mr32074833ioc.54.1629825203271; Tue, 24 Aug 2021 10:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825203; cv=none; d=google.com; s=arc-20160816; b=jRAuu7tC1RTdlQVZfHO8Pxm2fRqtMzBt4kn5F4jZVXPe0ZPYDaFR8by117HrsuXP5F oAHgPRVYbEqswlnADOrQrX380I7u9cw1RzZ/mHaA3eIclmZBlyGNUwIysgN++NkcueVN +ksNJKfA6lkDOnmFPu5HbsG58WstwX9mTzF+XLv7zSJxM1icO9xKO3pBENa8gma+/2Bo ykBbjA+052ZKiSPg2q7ktrVoT+0Pbhpq9m53Zp9kUqGW6RjE9dFOtb5f8gX3r3Gl3Td3 zcb99DfVjTIoNYJf375LV4HrUasn8ZXT4PpkVm22tuESSM0ev3QAT1Fq4lgI1kTFSlls qi4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vUYGu7H0nhI1HQaPeTaZCgDscJLMa5llOuCJu/WcO/g=; b=HC7XG15i4mRA4157yY+FvW04EElyYl2dSc3nPx0ZrWfX3PsTuM3nYt+Sqir4dNz1g6 PsfEZws5Z1Gzvq6V/ogDGMz/Ln2cs+BXmWmlq459vp+I5hHKzTueP3w+UgkjCRTrZZg5 wXzA5OPvNJmuyv4smiAgqmq1mSnkLASk2+TR+KeTjHqaOomSd4K7KHKFzTtq+P0zwcmR 8VOJ1jJcLuly7RBuDIzVntANMPmM8frLmXyqFDMTzQkOOoIx6tpfvJdXj0bcJJZBI7L7 VgIoWS39su0iHyUsWmwheUxiTui3EkVun9V/QF51LZCP6HhEW64yscLaN1lMHMHtCvL7 3hGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YOuYu1K2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si235103jao.34.2021.08.24.10.13.11; Tue, 24 Aug 2021 10:13:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YOuYu1K2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239671AbhHXRNH (ORCPT + 99 others); Tue, 24 Aug 2021 13:13:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:52012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240184AbhHXRKN (ORCPT ); Tue, 24 Aug 2021 13:10:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4DD6261A55; Tue, 24 Aug 2021 17:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824436; bh=+V96zo4Y52xd10TojP98jvm9kOCgl64dzt0SJyBdOfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YOuYu1K2cIUq2z3MDSIDf2ckX/j94XGtI0/jllW5ZHqw2onpalQhD3t+/w/4R1GDB Pd3HrJrOOHo++ILVSO1oEs1f3HH2YWIHIuJxX+5vUpbxY2qLL4vGVmVwYg8IoWRyfA qbDtEG4LQeX9wtQ8lQnEyeGfGpqjq1vpe7sgNZ37Bx1deRm+fIsKIaeCP2SZnuewRU QGqK2zw980Waq66+l67TPgjNRri7H4QAI961c6lMgI+4etXisB9pUyr3rgDe25jcbS //IXdHflNpIsceXJZ2Q+wWb0Kd97uF00g+Yav9EbrppUdfsexNZix6/KQAVJB6KxQb Kv05SMyFsuWOA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nicolas Saenz Julienne , Stefan Wahren , Ulf Hansson , Sasha Levin Subject: [PATCH 5.10 87/98] mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711 Date: Tue, 24 Aug 2021 12:58:57 -0400 Message-Id: <20210824165908.709932-88-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicolas Saenz Julienne [ Upstream commit 419dd626e357e89fc9c4e3863592c8b38cfe1571 ] 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 Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/1628334401-6577-6-git-send-email-stefan.wahren@i2se.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- 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 b9eb2ec61a83..9f0eef97ebdd 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, }; -- 2.30.2