Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp855531pxb; Thu, 17 Feb 2022 16:43:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsfDkMKyzHkeSamFIPrCeFzALhnZiWOBvtLOme6BVbMfHzwaexkEPli8Cbt7TnbJXPqhSF X-Received: by 2002:a63:8449:0:b0:373:3567:d8c3 with SMTP id k70-20020a638449000000b003733567d8c3mr4477273pgd.616.1645144984558; Thu, 17 Feb 2022 16:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645144984; cv=none; d=google.com; s=arc-20160816; b=tZgchcHRLEqeU4t/6r32Hqq05ApZXDfpJMYJG0llLdKNSCJVEUpDqaQtwwbHrN25XS m/n0HSPD4qlEYzRO7EWdGywBHUl/MnvsJ0O/PRGQdN6HUu+AtMtauY+L871x8DWHX+Bu VX9XmDWLt3CSNP32cLl6B1wcnRLzt7ci3Tp/z464jn7Wc77KNCeMZ2zh4YbCw+KXoEyI d7Pi/9SZjWP8PRl49MeSUxPsCN4CfaWJt5xt4JlkwNcaNoN5hjvpuFMrr//R18IVXToM lBuSmGHcBEUBQLgeAm9H5c1AkcQzzjFmECTtHAhHv2ivGokH8c7QFtWvQLWmTd9V2DV8 12ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=TFTlQQPzGmti7KVApu8+s08urpdqXAPiRc7Dxb9Wqsg=; b=cY4Y4AGrcNCERpG3wInmDwRADyA9bUE55yhq8BB9of1/G28Hy6j0hK1a/ZaIoci8ZO AkRd2fUgWqJPL1TsLu8qr9+yh8p/M+GdUVdHcC4PzuV6oSTVR/23af1zdiJuDf9/lYvY 1aKBReqisLnZD6F6H5mo1os34lWaCToLQ9NvfZMYdYxXLvFnb955MyMeIHDrfnjiVq/A V7NGyaH8T+ozOdCPzxcRLOFrehH4WLysT1f4AjhY3IqluxmB2s4dxg53a1HarNI6/sKU 6HfHzvbHu0yfwtPw8FDQHfe7Pjobq5MYjVFyoJuUe5HQ1cG2JGWWjU9gY/cHUuaAktdd fLKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tl6VFUE9; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id kb15si2449389pjb.76.2022.02.17.16.43.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:43:04 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=tl6VFUE9; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6BE291D33B; Thu, 17 Feb 2022 16:14:48 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbiBRAO6 (ORCPT + 99 others); Thu, 17 Feb 2022 19:14:58 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:38330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiBRAO5 (ORCPT ); Thu, 17 Feb 2022 19:14:57 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DC6338BC; Thu, 17 Feb 2022 16:14:42 -0800 (PST) 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 AA5B2B82437; Fri, 18 Feb 2022 00:14:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57B6FC340E8; Fri, 18 Feb 2022 00:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645143279; bh=TFTlQQPzGmti7KVApu8+s08urpdqXAPiRc7Dxb9Wqsg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=tl6VFUE99l05i2vQmdbhEq7Fn1VSl12cry4ydmqQDHqatI3GduWyojNGOkzdWJZa9 YYfuL4JiWDRrZSsomv/+7cedOxoG5lcoeTdDfCzL0Q7onjUP6L2NG0f+xJxxLYQyMF K1+TR6EaGgydXDWTF91Koty5Qfop+2R9H/mdRR4AbAHsqp4c6xvCAfgFi4+bhjDJNn vvXJ9oibZ3ZvXoQYLWS1rJAwR9QX8+lrfVPElt1/NzbAvJeEHdHhwoL/VO5cpyj5m0 ESrXeq7Hislp0cT+PEa1Dn/JmstiD3Y/7TpPtTRk/+lF4v4RnoIt+4rLEqk4v//+Sv Ww7/JyyPFlvpQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220210173100.505128-1-robimarko@gmail.com> References: <20220210173100.505128-1-robimarko@gmail.com> Subject: Re: [PATCH] clk: qcom: ipq8074: Use floor ops for SDCC1 clock From: Stephen Boyd Cc: Dirk Buchwalder , Robert Marko To: Robert Marko , absahu@codeaurora.org, agross@kernel.org, bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com Date: Thu, 17 Feb 2022 16:14:36 -0800 User-Agent: alot/0.10 Message-Id: <20220218001439.57B6FC340E8@smtp.kernel.org> X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Quoting Robert Marko (2022-02-10 09:31:00) > From: Dirk Buchwalder >=20 > Use floor ops on SDCC1 APPS clock in order to round down selected clock > frequency and avoid overclocking SD/eMMC cards. >=20 > 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. >=20 > There was a previous commit to use floor ops on SDCC clocks, but it looks > to have only covered SDCC2 clock. >=20 > Fixes: 9607f6224b39 ("clk: qcom: ipq8074: add PCIE, USB and SDCC clocks") >=20 > Signed-off-by: Dirk Buchwalder > Signed-off-by: Robert Marko > --- Reviewed-by: Stephen Boyd