Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2448608imm; Mon, 24 Sep 2018 04:41:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63B2cQzT/EaBTPMiznv1NspZ/Bv+7pSxHtI7MdIxObXOeEkUpMuHCZTjH2LM9bG30azw74V X-Received: by 2002:a17:902:b712:: with SMTP id d18-v6mr3232529pls.53.1537789282262; Mon, 24 Sep 2018 04:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537789282; cv=none; d=google.com; s=arc-20160816; b=wnIicfT5sEzdV15HxGTrXUHOcym6OuTgYxW7r4HplHUuoehfVaRu+qjNVZOWZjLASD 73c2SGFc9WifZIxrsyV8ZeGj/gVDsbsM/JWjbpXrhFIiyd31YyDOnTZEIWrd1hHUcNHZ shF8xUICewAFc3FumWQhoY7QfHByKcHM/Z8pLpJPaLtXbX34b7b07wyCQBt5CtkxLs+h B82n4yypwSX1OHw+mc28yH2CDntzKSTqjNKedZQK3arOuP+cnMWYuj0mtvEq3GE6xez1 H7V1Re0yIPaYZMMU5NFfcF1E8I4r0InW1fEeggI3gr5HkodwELE53t0T2KcaZlfgL1RR ziWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dXPoNWE41vbbecThWtq7t0Lqw/jBW9psmqd/6w8F288=; b=qjPvcAYXUymNSUc0X3Af9HWhal904GlrZRC1AGRPNqNTLuFsHW6in7eR/KHI57NRr6 tZvJFsO/xNZh4Xt5gjXcJF5dxd75ITGlNStnN1axoQnzWGiwgx2OVs9SjchByx4BZbWM 9WAWFGp7j0qJBlhZT/oqtej8EjRChnpk5wdG9imSc/P/o1sYK8+2WXcB2h7iKuau9Zjj hiUuFKv0kmZmIJPA5uF7F70DOshixnDvulHMfCbuZ7LDHepza871iuLeVywfnfL5X50C MQk3/3hysOs4prSSAK6N59bitVh4dHlxZwgAsCNGycEh0CZ6cuD+RczU0GpDwrcoInb3 Z81A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QUq1kYdI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s19-v6si5129118plr.120.2018.09.24.04.41.07; Mon, 24 Sep 2018 04:41:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QUq1kYdI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729320AbeIXRlt (ORCPT + 99 others); Mon, 24 Sep 2018 13:41:49 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52840 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728954AbeIXRlr (ORCPT ); Mon, 24 Sep 2018 13:41:47 -0400 Received: by mail-wm1-f66.google.com with SMTP id l7-v6so4525989wme.2; Mon, 24 Sep 2018 04:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dXPoNWE41vbbecThWtq7t0Lqw/jBW9psmqd/6w8F288=; b=QUq1kYdIRXZ3nFdsBDx6rGlgt6k8tB/z3Hnr3kuTyDx0FYM4Uhod/QDoOXgvhzkNQE bCCMK1SRZKR4Hohm0wmGDuP28kQU/McYRZ52plrK8q1Npy2kb6CXnL5zE8NHH3FXtGUB j+MmISvdyue3XTWOMxkxbutYdb6T7AY5JJwzm4I0zkMeC/7JWHei0rT5ilBQq5mWi8Kc Ydf9RIw7IILvIHptlE5jJuOD5e9QSLkLRyYENzKufcHkxXpZ6hFVUdgRI0OGRcNnuWhw 8jIkItEq/5YUqbqN113U0MitD3pjG0AP0T3dh+itjDwb4DTTAwYRq/fXYZrwPLCoSNI1 nfeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dXPoNWE41vbbecThWtq7t0Lqw/jBW9psmqd/6w8F288=; b=EkNIbfUKU2brpQJncMVFVIdvYfS3RSdVDrY5GNLuBNbK5s81Od8e/aJFqNcvkkRrng l/kYiD4Pnpj4EMDrHsLTCC7RjaDrbTwCIgt3Nykg/4kYRb4opbANPyvMou6XN7NsfRaG 6FHmBJo4yiD8+4+Bim+fXH4kZeC8Ud2gaYHRc2Ts7/t2pUgVMn2pdFolSSSMvXpr1a6B xHd3eI/pBMw08LrLRpvZS+pMWK0QZyamLQgGWfroocKrnYqwZyhac7SE5H97czrdpQ1O bJquSTCRKGQBrnLs7BsSEHfs0KwjBbK8jBMf8uUuNn7ewCcWe2c3gJK8TU67xepS/aPz tnTw== X-Gm-Message-State: APzg51AtHLifCtBF7EIDaVMFVTK8f9S9cHhC6b08sRayiDde53oKvTym 27cj2Hb//FVtVxfTxqbxYU8= X-Received: by 2002:a1c:1188:: with SMTP id 130-v6mr6693532wmr.138.1537789205360; Mon, 24 Sep 2018 04:40:05 -0700 (PDT) Received: from localhost (pD9E515A3.dip0.t-ipconnect.de. [217.229.21.163]) by smtp.gmail.com with ESMTPSA id x14-v6sm1333815wmc.36.2018.09.24.04.40.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Sep 2018 04:40:04 -0700 (PDT) Date: Mon, 24 Sep 2018 13:40:03 +0200 From: Thierry Reding To: ryang Cc: Peter De Schrijver , Prashant Gaikwad , Michael Turquette , Stephen Boyd , Jonathan Hunter , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero Message-ID: <20180924114003.GS21032@ulmo> References: <20180921220037.16862-1-decatf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jo46wx5DSA4a/gWG" Content-Disposition: inline In-Reply-To: <20180921220037.16862-1-decatf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jo46wx5DSA4a/gWG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 21, 2018 at 06:00:37PM -0400, ryang wrote: > Calling clk_set_rate or clk_round_rate will lock up the kernel when the > rate is zero. This avoids the infinite loop and uses a slightly more > optimized p divider calculation. >=20 > Signed-off-by: ryang > --- > drivers/clk/tegra/clk-pll.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Acked-by: Thierry Reding --jo46wx5DSA4a/gWG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAluozRMACgkQ3SOs138+ s6FyUQ/+OUhFV4i9eXn8U9G/iqxDUf2Ipyhw3J5GM2xJ/e0BiinsHS5swaf5CBPI s9k9ytlegplNxKOd0ZaARdw88f1k/d2nMYYDtSstaZWU6H0GFFCpJL8tnX49Og9w mJYjw21oHmikNGjTwqbvmwv2DFcSPL+w4dx+t4ataXrZCsDElA2YT4N6RqSeMJ4f uHPQHrCnC622rKRCWsS2iZbgHLIiWygrdn3kh97GtNmhQyYWfuUV7YToCPt4aQmx yg9r7XS9FqrtVCp9LmuPgfIzQ+gBNB8gRrcmmnhn+L36GRSjbPtD2qfkcjTavM/g LKNl0UB4gcO6AOe5RtVpFoix8wa4/KvM/lt5LyeDsQFizV3z8P0Cv6zEsGwITPJI lRUoHZlHAz8h30OnR+cGnNKuFe+zoPYxAOHyB+nT0o7VcYSeXTLC4yhP/COZmkUc SxBpxp5P0AfkUxT6RBFxeedAPft9BsnCrgJD4zMHaDYnVPxoBZlrTW7dxhoEoyQ5 8R/186CDt6vnUlHcrhjSl6ZElmbvYPF4YsZzzm6y1ePowwU1TpfUxC0iUTPNECtF /GzHykooirqJ7Szlb2XrGU9yz6Plep5utMaLRneMsaJ79AfsO/kV8Yhxi8+/uHkY +stR+cJjSuW5wIP2Yco9eAaAcuoyFUr7Ccijih5iiAPzZdIM/uk= =k52X -----END PGP SIGNATURE----- --jo46wx5DSA4a/gWG--