Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp734106pxb; Tue, 5 Apr 2022 20:56:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLpLCFPW6QHVkLEzUEw7hPSNX2S/V8vCNlBN8uHQXyIUWRjhyRNZfmuSRW74XFij0OGKh3 X-Received: by 2002:a17:90b:1e44:b0:1ca:9eb8:e1ec with SMTP id pi4-20020a17090b1e4400b001ca9eb8e1ecmr7891272pjb.63.1649217369607; Tue, 05 Apr 2022 20:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649217369; cv=none; d=google.com; s=arc-20160816; b=bLJULOgIbsd/I+33CRQ1h2Bmf1B6bTRa8r0uSuZOTNpDAeIGvGmXdISqolGuXjL3z1 CcTBYbvkk732mloCJE66mcjW7/+hQvtYdi47Qatu9K8/8S0qrYD8VjYxTn+w8y40Z2ja aXOXhbuGUK8nckBAmRgdbcYLv9FJDYrCf0rWero4VE24IkNdvz3rGpzZBfcWxEbC416w hUlRAden6VKja+0NeaWYXA5K8d7K/joFH/Egx8P++dapfyJE7/MhqmUnysm5amvkyD0+ yFgu8m5FT1UbtOcdvi4Yksufgc2uhO89k6UsD0reptqixtsMDIlx6bpQAXLsL8y33Ah4 Kxtw== 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=LTv3PpGCHGv9wvXhfoOGsEMwfjUb9Hgv4ncGmeUd93c=; b=p3Pcc9rhVJhK3iZxtzRSNn5/nqkQ+dc96VsLShmtKFZl2mxcNatnNaVNkXWco9MVfy xXNjzmnNHGephuTCo3aaJxBo9YDLjqV5QpC40fm5w1IUEbEyOfmZa60fpxzZngSe7wuO cxUH5GNpJgs+lYSiJajPx1O1xdAdyJwzq7iUFBRBLJCTWPBQUvx4D9WJMtji89EZ94XD CY3BLDu7I6EGVl99QGlTT3AOxWs9dVIgJFew48IXyvVXnGY7gwlLr3TWWb8ck1n/C8sH wv51L//K3BRL+0jSLYKN6g7swIProVji2/BEVn+/6LudwDcp2c1ATb/yefiEYW3msNta xwQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fl9tf04l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a8-20020a63e408000000b0039c690a744fsi956643pgi.38.2022.04.05.20.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:56:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fl9tf04l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65C07423FC4; Tue, 5 Apr 2022 20:31:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236023AbiDET4N (ORCPT + 99 others); Tue, 5 Apr 2022 15:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349431AbiDEJtv (ORCPT ); Tue, 5 Apr 2022 05:49:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB2C24955; Tue, 5 Apr 2022 02:45:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id F2902B817D3; Tue, 5 Apr 2022 09:45:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6155AC385A3; Tue, 5 Apr 2022 09:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151942; bh=hgwv3Bsh45tJ1pWCJ/OiWav3TISg2Dhm7A/oWtm79mM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fl9tf04lWs5tPrA+aL+N8vv9Fc8itOlYB/NNAL8gb5YTwaedjF41tUTZSIaZqRF8e BKzbVBlMcP9THHJIKLQW8qSUSbEHAcrGOcacA/RNZOcuRePfcZhL7W5wsv6+Vmg9f8 OERq4s5Sz0eCrVud3ZMRNuymL6oTKlm18p7FURIM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dirk Buchwalder , Robert Marko , Stephen Boyd , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.15 597/913] clk: qcom: ipq8074: Use floor ops for SDCC1 clock Date: Tue, 5 Apr 2022 09:27:39 +0200 Message-Id: <20220405070357.737012667@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Dirk Buchwalder [ Upstream commit b77d8306d84f83d1da68028a68c91da9c867b6f6 ] Use floor ops on SDCC1 APPS clock in order to round down selected clock frequency and avoid overclocking SD/eMMC cards. For example, currently HS200 cards were failling tuning as they were actually being clocked at 384MHz instead of 192MHz. This caused some boards to disable 1.8V I/O and force the eMMC into the standard HS mode (50MHz) and that appeared to work despite the eMMC being overclocked to 96Mhz in that case. There was a previous commit to use floor ops on SDCC clocks, but it looks to have only covered SDCC2 clock. Fixes: 9607f6224b39 ("clk: qcom: ipq8074: add PCIE, USB and SDCC clocks") Signed-off-by: Dirk Buchwalder Signed-off-by: Robert Marko Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220210173100.505128-1-robimarko@gmail.com Signed-off-by: Sasha Levin --- drivers/clk/qcom/gcc-ipq8074.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-ipq8074.c b/drivers/clk/qcom/gcc-ipq8074.c index b09d99343e09..541016db3c4b 100644 --- a/drivers/clk/qcom/gcc-ipq8074.c +++ b/drivers/clk/qcom/gcc-ipq8074.c @@ -1074,7 +1074,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { .name = "sdcc1_apps_clk_src", .parent_names = gcc_xo_gpll0_gpll2_gpll0_out_main_div2, .num_parents = 4, - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; -- 2.34.1