Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9110205pxu; Mon, 28 Dec 2020 06:54:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPhpMfUM55GIkQFybzrckg09NKI2zCHd/YtsUHmiCldE0zsjBAS80oIDd7jT/d/RcisyQz X-Received: by 2002:a50:fb97:: with SMTP id e23mr43547583edq.208.1609167285128; Mon, 28 Dec 2020 06:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609167285; cv=none; d=google.com; s=arc-20160816; b=LBL0XdOYuep36dKokZyMYfsW5E8CBTBPzENbbXhWZTMGn7sni2Y34+uz162BjI2oeY GfamPXRsOA2WMBXgYwv9jLgMTfaTvvG9gkosbcRA/qmpir+gRRHalcREXaa5uC8456Dh +JOXwPe8TjtFFk9fwnW1tZ9B89PBG+o/x+W9KRKTnd9/nJ8do0sXOCZXAUyGKZADEGEe pU3dwFxmMzpEVzDt4tiR5KXnfQ0N8Wc5JyYgZEMmn5wD90ykHD4wIrl4O69eEuyB4KWz 4RCsmFCMIREivLeSfuJgFFwe7xJl+JeO+UyZL6oFm7wE+vyszozgnkPSNO6ZWVJOljVF /P0g== 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=7Vv5pTuVFfjcqK325cdBJHaeYJ+x6rqriuquVCQZwAg=; b=sYSv8lEzh2Ciz/sc/VgfjT6HsY7FHyHDHlZozhcbswmo17RZRCNmu+FrCXQWJQvAAY UXzY5H9Cb3SPVzqME+qjd/pKvTyRjhS8+i2bnbUMplWoIu0hB54xVvLmE9fhNJSGsSpS TF26L6WC+qIr3JnhxsO8WR4MDqdRjctxz9jzMrk+RmYeUkNUztriPTOzwGgkq2TKw2EX jYiyFM42Q/sjMJCrKMWKc4m5kLbF7046kzGxjtFpVvIWkvo8lxS8+MHiPrWz2hYyANgW eWnc7KpN7Kt0qevUIvxow+2QkXBgp1E+94qX63rg5vhooXVS3pafXE8n2lTR+KwirZJi 0wSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QFwtVvq2; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb10si17160079ejc.405.2020.12.28.06.54.21; Mon, 28 Dec 2020 06:54:45 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=QFwtVvq2; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502017AbgL1OwS (ORCPT + 99 others); Mon, 28 Dec 2020 09:52:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:53992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502012AbgL1OSu (ORCPT ); Mon, 28 Dec 2020 09:18:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 628FF2063A; Mon, 28 Dec 2020 14:18:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165089; bh=I7KN9RE/rgQ73uafjBQeSk8pFjgBk+T0c0TxwLU0UL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QFwtVvq2C0w+87cW08UDH7Ts1Kx5xruE0g3GvKgMqz3FnLy2C1yrDYR/kriiyYPC+ Is7tUI6GuCnpmbwJ6/7JoF6tavbKxxaVObff5LAjhrV3Nj3TiHfgkK4QfvBVC/8rqv xiXshS/CA481sB9ltKlqfHE+Tw0y6oeK4fvTW4ok= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Anderson , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 406/717] clk: qcom: gcc-sc7180: Use floor ops for sdcc clks Date: Mon, 28 Dec 2020 13:46:44 +0100 Message-Id: <20201228125040.440530127@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Douglas Anderson [ Upstream commit 6d37a8d192830267e6b10a6d57ae28d2e89097e7 ] I would repeat the same commit message that was in commit 5e4b7e82d497 ("clk: qcom: gcc-sdm845: Use floor ops for sdcc clks") but it seems silly to do so when you could just go read that commit. NOTE: this is actually extra terrible because we're missing the 50 MHz rate in the table (see the next patch AKA ("clk: qcom: gcc-sc7180: Add 50 MHz clock rate for SDC2")). That means then when you run an older SD card it'll try to clock it at 100 MHz when it's only specced to run at 50 MHz max. As you can probably guess that doesn't work super well. Signed-off-by: Douglas Anderson Fixes: 17269568f726 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Link: https://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-sc7180.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index 68d8f7aaf64e1..b080739ab0c33 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -642,7 +642,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = { .name = "gcc_sdcc1_ice_core_clk_src", .parent_data = gcc_parent_data_0, .num_parents = 4, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; @@ -666,7 +666,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = { .name = "gcc_sdcc2_apps_clk_src", .parent_data = gcc_parent_data_5, .num_parents = 5, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; -- 2.27.0