Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4841047rwb; Wed, 17 Aug 2022 07:01:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR7AazXptLjT4zP8UAgkPy0NZXXygw68kXNLDoGA8y1CIeTQHqVoOTKhicAZNUxSbL9oz5JU X-Received: by 2002:a17:907:94c7:b0:730:d5bc:14c with SMTP id dn7-20020a17090794c700b00730d5bc014cmr17425862ejc.68.1660744881576; Wed, 17 Aug 2022 07:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660744881; cv=none; d=google.com; s=arc-20160816; b=B61Rc4z7KcRFG5DAxbyq55v5n7zBu6AeOAH/g13vg52ELVSatBvWpfpkmQ3g2/tYez QteyBODC2xVtm27XJipgbu/CvjofgYPsH+BkWMrAH8piDdzclJFdJSLlTmUQIcCCeofD my3rEJireC39N7pBynv0+IGuX4a7J0qN4LmNJrXiuW55UdURmvxMDfjb1qEARnGm0mvb PGfhHKR/+Y/TtpZ3nJL2hv1JFldiiJoLESdgaL1VuV2Xq8rcs6XixKo0cTpmdTgc2Z/S gPmHGQeVm6rsKzXJN9yYXdS9peGtqlzI38FG+hnCeOFfX33bkrT0QnkpRDq5PjCvBL0S 7scA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=axBECSzV/EqfT0Sn05l3MHwC6tk13jz5uq2PwFJrwcg=; b=VYU5LyLx6P4gfjy3033y2su6GzJLMW+9cODXJVGvY2z0w/Zn4aU2OD+aHLLq+47Er8 nBJ15oPlQr/9vqT5B3WX94s6ef19jxC3LhWq68uqUNd2LAtXOVX6exzw7POgr59fnt4/ mmtTT2Eot90QB2pteO24iuSbEXiII8OMLkUWcoWg06dMRsyCjnXUdnDD4vnDUQluc2My MOTfEbeF3vHfnmg1mHmtwZ7RUblzmnIw/+jjSXAbPqK6dXL2LdYbcycEtfCUnQWk/eGi voIZe3yX0L9Ljdv/u2YwNM5CiP7xojyeBTq9ug6slyyQ7ThXQnMeLGouK+CSmCL9fjux fAoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IKByo38T; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp18-20020a1709071b1200b007387740b9c5si5562187ejc.22.2022.08.17.07.00.53; Wed, 17 Aug 2022 07:01:21 -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=@kernel.org header.s=k20201202 header.b=IKByo38T; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239342AbiHQNo6 (ORCPT + 99 others); Wed, 17 Aug 2022 09:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbiHQNo4 (ORCPT ); Wed, 17 Aug 2022 09:44:56 -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 8EA3B94EEF; Wed, 17 Aug 2022 06:44:54 -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 5FF2D61403; Wed, 17 Aug 2022 13:44:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B6EBC433C1; Wed, 17 Aug 2022 13:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660743893; bh=axBECSzV/EqfT0Sn05l3MHwC6tk13jz5uq2PwFJrwcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IKByo38T17YV6cNWZZl0rJZRGDfiecze0MgLBe36G0uCpz1QXq1sDSqpLNsi0MByc jfx1y0Q78Ey1XCVc374+QNXBGg5S5/tj69bMDJwXwn6YIo20LVzDJEAL+ugax6C3/u tcdZWyMu+feSH3nrDPjzpTVUP492ynZYj13J4v86ENKCefqvRtEq53r6gyDddDb4tp T/wyc209XPcAFl/qCEFJDy8tVU+rPH+Cp4LYNJFnONiuGywqzTfdittKnhMjzLSZIx fOdI3UY9n4FDtm4D8CtTJR+NSGVrGT8HYKeQubadJY6rgNu1ZNXYNe7yCqhv6C7OV8 8oYW1AiHSkZGA== Date: Wed, 17 Aug 2022 14:44:48 +0100 From: Mark Brown To: Shreeya Patel 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 Subject: Re: [PATCH] spi: amd: Configure device speed Message-ID: References: <20220817131809.312533-1-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6FocHUaNXur4kiU0" Content-Disposition: inline In-Reply-To: <20220817131809.312533-1-shreeya.patel@collabora.com> X-Cookie: Use extra care when cleaning on stairs. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --6FocHUaNXur4kiU0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --6FocHUaNXur4kiU0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmL88M8ACgkQJNaLcl1U h9Bw1wf/ZyAh2aIJGCThq2MRGZPYvLvL2UXlzTF0y6ANGohcz3kYFgyEg2GeTf22 YGrIH7UuqTEb+jWL7sews+gNZ04cB1AYSphvkamTlVFARillpOteigu10mX72p1i F3NY3qJ9jPzFP+jVu/Wx8B7lROHuVJ0D9Fw4W6Bu0tfjyjsu73X6KmaVCA5XRmVt zKZKQswcTmr5Ce/kBk+i7CbOmqnZ+eXtEUp9sFulcxFFFfdAVdDogjktFEGy4mna bU2ougQgzHyttoXNedBN0S8ih7YjULeyr2qlbZnoXOtvOXHVjg0dpimBRYiglLn4 hG75Lu+wV/IIvp+3F35IbWGkzA44hw== =scUh -----END PGP SIGNATURE----- --6FocHUaNXur4kiU0--