Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4883264rwb; Wed, 17 Aug 2022 07:34:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4H+/iXzcCw2Pf2j1ikz6It06t9HAtvoBFXht8a2rWX6S/TI0d1NxZzIesHkeajqEPRkCRP X-Received: by 2002:a17:902:cec7:b0:172:5b09:161c with SMTP id d7-20020a170902cec700b001725b09161cmr20189922plg.60.1660746889993; Wed, 17 Aug 2022 07:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660746889; cv=none; d=google.com; s=arc-20160816; b=SeJg5Ylqy3ORkW/3OD/z2lOjro4IeHODtQGE+24XrxGd8X5eLw/QoMhTjfEkK+giqh tqTRuF0pqfVHj1mryZf41UMli54WGPLRHb1E6M22SWdv1uSoxtLz8Tfyajh8K3RqrpEr 957mZhTa3vZxN/T+BatEGO258/J0QJnj+YKt5ch7CnDkzRV3Fbe6duAX+ItNNT/3vsqk bJ6Q+apodQvysUmU8Aj5AutJH+2XRF2LbfwNHx5neNQnmffAcbno3txL15womDzUsPTd hSiQ5T3XVNW395ecEU0c2Fr7T0ZbniIt9wmJVYFiPaPG+rK2NlLAl/DkEiKX7ZRfnhoB krsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2zJRCkHrXjs+zifDKrmnZ2zF4BrWc3vpcZ6DCfNTgPw=; b=sipZVEC+GnukFkfkq0a97JgcBGDwl02upvJOhShG0+vu70OPv5INkc+wjzD+GiNnm3 LpBQo5zdsOUuRD84hFjHYDPPLofP+Uv/tEqHSe25Xax9D86RLn2xAV/NCW695Acvo7NH l3XekQ9zOjpWjTu8adiiOHQtpEqYpHqy5+shG1dCQRJcSIhQQ8GLRPiaysq6L3ACVj/D MlwjzbqE1Oj1pcUFmmOG1yyi9lcdJwQSuv7ssw51VbnBQzJeeDY/47yL5OCPYyByknYz 1bpyrI7WQq2zj7KphuqMsKlDOMssWhtpVKe9grVPhUD3bnrVErj0uwoY2+BarFg2JFnh oRpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M7aUifx9; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a17090311c800b0016d4e5ca5fbsi1630217plh.308.2022.08.17.07.34.38; Wed, 17 Aug 2022 07:34:49 -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=@collabora.com header.s=mail header.b=M7aUifx9; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239989AbiHQOLT (ORCPT + 99 others); Wed, 17 Aug 2022 10:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240028AbiHQOKk (ORCPT ); Wed, 17 Aug 2022 10:10:40 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CC472BB1E; Wed, 17 Aug 2022 07:10:38 -0700 (PDT) Received: from [IPV6:2405:201:10:389d:42df:ae4c:c047:294c] (unknown [IPv6:2405:201:10:389d:42df:ae4c:c047:294c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id 635C8660159D; Wed, 17 Aug 2022 15:10:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1660745437; bh=800RC4ICkbDmhsqVW2aoXXz19mRXLW32RQKJ2uMQKM0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=M7aUifx9KeQns+dDyP9sZSXqRhTtgvqLT+7vUAkfVi6ANb4X54d1nQyQpvRnDjKhA D7OMf1XhTgZq27DEpqe9xosatYWCP8PLslavQFK5X/Wq146BlY/CPoC8uIQpejxOPZ dc1Ji46HdJ9io2ViNSsCjuWJ4KzKlWO+OX6wf93iNAzjDaybTsbF6zBntrR8vvzaCF 0lCTtVN3xAxUDPMubSlK3N5h/91ae/6Sj0dtTjWhQEJLvSWNPapZfQz/Bs5peP8jwC 5MyrhaD2DTet34vKUNjObpm3WReNsiF0zSUtm14tqKBB4XQvH+z1qC54b2jPzxZ9wY j8tIp0X1xyJKA== Message-ID: <3e2a0f50-c396-5af6-5cbe-303978378587@collabora.com> Date: Wed, 17 Aug 2022 19:40:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] spi: amd: Configure device speed Content-Language: en-US To: Mark Brown Cc: sanju.mehta@amd.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, krisman@collabora.com, alvaro.soliverez@collabora.com, Lucas Tanure References: <20220817131809.312533-1-shreeya.patel@collabora.com> From: Shreeya Patel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 17/08/22 19:14, Mark Brown wrote: > On Wed, Aug 17, 2022 at 06:48:09PM +0530, Shreeya Patel wrote: > >> Create mechanism to configure device clock frequency such >> that it is the closest frequency supported by the >> AMD controller. > You shouldn't use the closest, you should use a frequency which is > strictly less than the requested one - driving things too fast will > generally break but too slow is pretty much always fine. Hi Mark, yes, the code is actually configuring it to use the frequency which is strictly less than the requested one. I just didn't use the correct words. I will make the change in commit message for v2 once you review the patch. Thanks Shreeya Patel