From patchwork Sat Oct 22 07:24:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7466 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1098906wrr; Sat, 22 Oct 2022 01:12:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4KZNNycFi9S3E1/p+4hOsvPhai9VUkXi26mbQOiZqkkrcEMRBKpNsMuaOCgYiSsY4iawtc X-Received: by 2002:a17:90b:4b8b:b0:20d:ac2f:8bb2 with SMTP id lr11-20020a17090b4b8b00b0020dac2f8bb2mr53302438pjb.194.1666426326758; Sat, 22 Oct 2022 01:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426326; cv=none; d=google.com; s=arc-20160816; b=AIAJqmoP4dXSzRY/uSAUHVKXAOpCF6+AHjhn6cay1agK0ikUL9b3FSSwetO/4bu2va 1h7MpxPfJqKCDJmdfGgnGKNKE4kABDGuZpODlovq8aXb9rob2P2YAdHZNx+w8MKAypjb RBaBHkZ83WYUrPTcX3bEOP5LfyAWu4nsoWMCjlNPsa2/28Th43kEbCEEoNrdfMndHMoL zVeeYZFxtcIsVvbpEwDuBBZIL+63GImU4pc5OhKSLdv7R1JSQXnewsVIYvdKuY6OfeN/ Nbbps316KT+hCwbUcD0b3d23XjGjBYuSEs1jou642GVnuFNgMDDvcmb0+39WM5bA+ZZ8 DOXQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S3B424mCGqfKzAf3lqDAeEddOod/1fhdiZV0JbxECm0=; b=vKlhsLTkL/F29E21BajX8HZVw6u6IEZhxyYyCydNwydlTMGlCSODOtHLNQ1WULvivE tzgHumA1ej+oexEiE+e88KIuw+3hKN+al/ZTwDAX/AD6X/2BjHEhzBMJKcSzON+xPci0 gVWmNgmZ+uJFwP0HEWZ6yJlYVkmHjnDh/hv7PYbhDi5iYMBnegXzp1vSWZVhbZMU7q3s Tjfa7B5g/Q39bAtdl2QF0dpT3EMmj29WFZAzQRUIvkOyuVn3zTTKcPjR3L5eh1aeYvmi S1NitOqIjmJ7FhLd3Ncbxcx2qaxt/Q2hQB+OlO0IoXb9nkkGWL20Eie50ETJC7gZCuQ1 Wp8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QxjFhwCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id my6-20020a17090b4c8600b002038e75bdccsi9606104pjb.173.2022.10.22.01.11.54; Sat, 22 Oct 2022 01:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QxjFhwCK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233320AbiJVILW (ORCPT + 99 others); Sat, 22 Oct 2022 04:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbiJVIJ3 (ORCPT ); Sat, 22 Oct 2022 04:09:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A572D447E; Sat, 22 Oct 2022 00:53:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B67060B81; Sat, 22 Oct 2022 07:53:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4194C433C1; Sat, 22 Oct 2022 07:53:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425189; bh=0einq7fTqgMqNK76jwkzXls/v3g3vDEhp3UU2sIhUVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QxjFhwCKN8NaJ9wXDeNsX2JztWkxxD8NyWib3qiGSE+qjmDbcJwAZld5MD9pOTdlj M0L1eUmJTPVPDTxE4jo6yjZecUe6QM421WFtw6ipN/Wjuj9alRsWuMwgkbMCOSBnvj KuhcqrYw4slasZlVnYXd84oeE6EtA0ZGif1At6A0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marijn Suijten , Alexey Minnekhanov , Stephen Boyd , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 393/717] clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clock Date: Sat, 22 Oct 2022 09:24:32 +0200 Message-Id: <20221022072515.071366224@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747374652215855692?= X-GMAIL-MSGID: =?utf-8?q?1747374652215855692?= From: Marijn Suijten [ Upstream commit 6956c18f4ad9200aa945f7ea37d65a05afc49d51 ] In commit 3f905469c8ce ("clk: qcom: gcc: Use floor ops for SDCC clocks") floor ops were applied to SDCC2 only, but flooring is also required on the SDCC1 apps clock which is used by the eMMC card on Sony's Nile platform, and otherwise result in the typicial "Card appears overclocked" warnings observed on many other platforms before: mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz mmc0: Card appears overclocked; req 52000000 Hz, actual 100000000 Hz mmc0: Card appears overclocked; req 104000000 Hz, actual 192000000 Hz Fixes: f2a76a2955c0 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660") Signed-off-by: Marijn Suijten Tested-by: Alexey Minnekhanov Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220714203822.186448-1-marijn.suijten@somainline.org Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sdm660.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c index 9b97425008ce..db918c92a522 100644 --- a/drivers/clk/qcom/gcc-sdm660.c +++ b/drivers/clk/qcom/gcc-sdm660.c @@ -757,7 +757,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { .name = "sdcc1_apps_clk_src", .parent_data = gcc_parent_data_xo_gpll0_gpll4_gpll0_early_div, .num_parents = ARRAY_SIZE(gcc_parent_data_xo_gpll0_gpll4_gpll0_early_div), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, };