Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2896747pxb; Tue, 24 Aug 2021 10:06:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB8HfkaEEXT967dXVBXnGEORCyDa1uwU4mEauZv3WObaSz7Mhi3cPPx/NiVt5JH3+NXE/6 X-Received: by 2002:a92:d0b:: with SMTP id 11mr28840733iln.244.1629824765855; Tue, 24 Aug 2021 10:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824765; cv=none; d=google.com; s=arc-20160816; b=LNPbO707WHw2y3qE5C/xyuf1NFTpCScVdK7XPL5fpky7E4POAAYoXtWeO0hYv2NLO3 faT9pjreTw6Gy38lZ5nnAseJFgoOdmzFqe85fx1Z9cYb9N9TWFyyS+/gmtLl45BAAcqy RimnPK22O+xJEidlfY01G2gGOyiDxrOIdBu5ihP+NpiEfh0Co/EMgKz6U6QKLV0y03dB CW38Lou5PQTmNfTzLxNzjnZFtImwLSepZa5Di+iynoLIqgcwmEOuVkkp3LnEh1orOnor wwW7MVyboWrJpIlPMNrs30erJ1dbphsAjzxs7BniMLaSgks7ZLK+8susTrCnebr0dizD Q7cg== 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=OprLl2UDyuiy/iA6vwIuemflZMIkpg/jQ/r4BNIHnjiMXax2kvcQO5E0QTf/L4VxUB gGzbwdDYHRX0IcRBBVJhOKUfAb61aTxntgLIYND0IGjBiFmonU56yrqizsvAglRISREL krF/4wwYAED6pK12Tk9aVKpMEm9tYxgyFwCb9U8cUb9fe+gv++GqGow9M2iSfrlwrljO 3lrQ3uL+Z7WroPoB7DrorFIjmNgX5XCz1O8y//znQv8t0yYcWXTbrz6zQPG/0RmYriZQ av7wbyHyBudRsw5mX3STBnDKM7P0xf1Yw0VBOtahvCpT3gW/URY1AKQSojyhsvNjNMa4 UqWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKTz8oe9; 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 c1si17052324jap.87.2021.08.24.10.05.53; Tue, 24 Aug 2021 10:06:05 -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=lKTz8oe9; 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 S238921AbhHXREF (ORCPT + 99 others); Tue, 24 Aug 2021 13:04:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:39904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238678AbhHXRAq (ORCPT ); Tue, 24 Aug 2021 13:00:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B7096187A; Tue, 24 Aug 2021 16:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824273; bh=+V96zo4Y52xd10TojP98jvm9kOCgl64dzt0SJyBdOfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lKTz8oe9j0WiA/eoqp8uV3/0NRm1VM5SXg6FtIFu+1p75iX/usPZ7V0fN5/idiveh pLPz/wbkO8aHzGcEOI/iHzTPF1zTKdhKL9RI9PfOOwk4I0LIeDWlAQofxsHCPDMWs+ vOeFXbWkTMmGDTotQ+za+8Fh+AxB1xSGfl8Sud61i1YuZrBUpVDLa0Sdh2YYeD314e MZxB8cdd0X1dbVWLOHHg+6SH49OinwtD/DVdp6lzj3NMkQ1lWH3Bshs4YkwHobwQgy qlUWrMHI0GILRY2vulRiudrmvieOpYuD0dyH0lr81imWVjaV9g+1jvwuityjBeNxm5 kum10hnjrEf5w== 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.13 107/127] mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711 Date: Tue, 24 Aug 2021 12:55:47 -0400 Message-Id: <20210824165607.709387-108-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+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