Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp636865pxb; Tue, 5 Apr 2022 16:49:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPbHdokoQBgDlRXqFsv4RTS5uGpE/SYr4Hyjn44WOYDLkkX72UbMbE+96K2pZeRHbsyrBg X-Received: by 2002:a17:902:9345:b0:153:4d7a:53d9 with SMTP id g5-20020a170902934500b001534d7a53d9mr6017433plp.116.1649202581530; Tue, 05 Apr 2022 16:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649202581; cv=none; d=google.com; s=arc-20160816; b=x+blV/7X8V77BAvL+VnSzj0KUeWQ8uU5M2TDqWbWM0yOFLxnuCndDFhZGEZPAtbSK2 Bv2RLAOO7dDd1HvLsIZHiCT7lfN3D3BW0/6hAZYUjHha+Ogtsr2EF9AJvwcv3g+nAXRk jggj3EePb8NHZ2vSvvjnRRjCeJ8b+Mp3P41TMcG5UghESuvGjQxGnF/3UBcNK8xXOJPl toyGywvjCrE5l+vyU4/PD35Ug+xZWF21FdV4IeqW4HwWZZevPpCewGb8VknFOZNniSQZ iHe75bYp89QNaD1AThLcOBy8Sb8JI7n+nJZ3Yz9ScoUkVOAD+CAZSsDtZrz3ERepUyeQ LgZg== 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=CE26rrLcQE4A6wj1SX6BMqvBvVnFQQm6+3Vixk4uhaH1ZYoMRkAXi0v9LFU8jMgsku YVuVb7rTtSz3laEva9KKNv/AfszyC821ugCs1UFzX4tPXpfFPEi46kH61fkTrVzMPMxx 7rYAffHkvL6kL8OKs9kj/fjZ08s0yr4sI1BPAl8gOG7jAqgjVm8xbtNdW7HWrbqrOFPB LCVHGU7dpYgWDb8zaR/QiX5FWnJ5EtKYpb5QBSb+47UeI8ihe+TZ8D5UfENZ8ipMdwKT F2IG3wWBPF3DkD/4YrTCmgcRrqa8hARbTIC8mEGy26JO2RjRjCBsejxQbKCTSswyG6IG D2Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="S5ujDD/j"; 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 g37-20020a631125000000b003992ad63332si7518925pgl.404.2022.04.05.16.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:49:41 -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="S5ujDD/j"; 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 172C0101F3D; Tue, 5 Apr 2022 16:33:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355304AbiDEM52 (ORCPT + 99 others); Tue, 5 Apr 2022 08:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238451AbiDEJQG (ORCPT ); Tue, 5 Apr 2022 05:16:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081D4972A1; Tue, 5 Apr 2022 02:01:33 -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 984F461562; Tue, 5 Apr 2022 09:01:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6F03C385A3; Tue, 5 Apr 2022 09:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149292; bh=hgwv3Bsh45tJ1pWCJ/OiWav3TISg2Dhm7A/oWtm79mM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S5ujDD/jHHn49JLU88rp16swnLpJo7NESgT9SKYcTk4+mz6aSGk+BbLZS1u34P7zv xYpunkQwd57dT6vzY8+jPfrajaudV9VSIPjRwmKVoWUhVHdrDsHxSkh3CYxyanoew+ 3rNjRwKRmtCaYpoRhjK8B12nYr2PPdkHBhhBo/s8= 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.16 0662/1017] clk: qcom: ipq8074: Use floor ops for SDCC1 clock Date: Tue, 5 Apr 2022 09:26:15 +0200 Message-Id: <20220405070413.933080407@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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