Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1001093imm; Tue, 2 Oct 2018 00:36:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV63SusTRjyyEoL+LelyBEf0RX6zgBc8XrGkQGPNrBv+Z7NWepZUcu42ScHx2iyCMJiLGdY0Z X-Received: by 2002:a65:48cc:: with SMTP id o12-v6mr13064293pgs.22.1538465789277; Tue, 02 Oct 2018 00:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538465789; cv=none; d=google.com; s=arc-20160816; b=Z5+Ds6A5cppBii/9lekxEN1Ww64QyQY++JPYeHL5QgjzKu+BABmZpKapzX1DCBXyC4 2HwHYTCBw1IRTlRNq/UFT+gWVdWL877mV1X2t71a/C6VyctUdzkkax4gMon+JFCnEi2R GNmsiOxtyFPkV2oxLqhQpPduoNete8nBzqeWBnQwJHysjijD7sU9t1CdE5L9RG/H1V24 vI0RcwP77JtY+ultHpdxOrBlnQmC0xKE20aqw5OWuP+rZkAzKqRT683r2mme4uQH5Wws gzwAYO+o1hqI94Ua7nog12Yflx/0cgaV6UKsFY20MpZ5PtY8rYHQTF+o/5K5zhkza/VD dNPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=JaBxdk8dlc75n+tiHyHmslRgG4Lljg32mJmDqV4Bh5Q=; b=ldChwV74yYPjOMATNKpsFZ+DMikvntTO/I6KT3W9rtSUWmsQYEiraXQuqw4xT+5G0u sYuKS2PVH3XRMQl1CLrDLUv48BMIW49L3ktmU4+ivnOO/w2tMER27wTRKxCKl/6kXYq9 dXlvPPCO4QOhNsW1AZU1gKs/amNilU7Q0rJjXyhyCfiVRwGUybURmFEio1jCHppeeWfM hayBXBiJvvcHnIFmv+QiQbCWx8BVv3+azoHjkR74o+MHU6tXx/ANlXOGnP8BWjT33nre dU0aTNVVnbWh3CGc6SKgMnmZzgFehtUdIA95Bg3uEVzj9KmMdhzAl10hAQ+Vw1UANV9Z akxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="0t/mtGoU"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7-v6si15055245plo.109.2018.10.02.00.36.14; Tue, 02 Oct 2018 00:36:29 -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=@kernel.org header.s=default header.b="0t/mtGoU"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727131AbeJBORw (ORCPT + 99 others); Tue, 2 Oct 2018 10:17:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:41424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbeJBORw (ORCPT ); Tue, 2 Oct 2018 10:17:52 -0400 Received: from localhost (unknown [104.132.0.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 34BFD20878; Tue, 2 Oct 2018 07:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538465760; bh=JaBxdk8dlc75n+tiHyHmslRgG4Lljg32mJmDqV4Bh5Q=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=0t/mtGoUgUUxiMDQVFq6100Fq+0mDM7mFOjff+MycZoBWftAQfXEXFvqjO81CWVY2 1UcjDYpkBIbWTp0yBbZ13ac0Pbo94kAmyUg0HZJ2DtTNjSTp1eMSsEUFQuOThgr7MJ 9PObHDjmai1QlPyDxBAWMvyxgmCTWHJP4/lWwifM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Peter De Schrijver , ryang From: Stephen Boyd In-Reply-To: <153843172633.119890.17243129066234373128@swboyd.mtv.corp.google.com> Cc: Prashant Gaikwad , Michael Turquette , Thierry Reding , Jonathan Hunter , linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, ryang References: <20180921220037.16862-1-decatf@gmail.com> <153843172633.119890.17243129066234373128@swboyd.mtv.corp.google.com> Message-ID: <153846575952.119890.6094475401652816252@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH] clk: tegra: Fix an infinite loop when clock rate is zero Date: Tue, 02 Oct 2018 00:35:59 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Stephen Boyd (2018-10-01 15:08:46) > Quoting ryang (2018-09-21 15:00:37) > > 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. > > = > > Signed-off-by: ryang > = > Do you have a more proper name? Or you want the author name to show up as > "ryang"? > = I see a v2 on the list, and it looks similar so I'm going to assume this is superseded now.