From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E74E0C33CAA for ; Thu, 23 Jan 2020 22:59:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4FB020718 for ; Thu, 23 Jan 2020 22:59:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kO66i6Ez"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Dluiq1xH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4FB020718 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gJg1rdr8/xKan6y7KzXzA9NncUALHhaKQ2icDxPNswQ=; b=kO66i6Ezbvymzq 5JUokK0TCWo+0vK0tTmgxSE87DqQ5mmBY3WAbQ8D8x6BCm5Z+8deSomx1nhpJ+Z9cLsTzuVylBoh+ 0637a8uaD2HdPrW0Gb+sEIx7OOG/iI0qy/0u3uch+1viCYvFAA0htJbWT6YDOsCOByfpEWCGVixWq vzDqiuv9gOJIjtLj3SHBbYlPhmC77Iki1QP6UwOUMarJHW4uZPN3i/a3dZid+8dGJEMM7NUPdxB8c hKxAO25YvssZleg1hz90s0HpVraqB/oLzAVrtl5ZDicbMvM/42eEFasaHQNRlUJ/xnLruwbZAApHf 8eXcfEKY6BFEG5GqOfQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iulRs-0001x3-TE; Thu, 23 Jan 2020 22:59:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iulRE-0001J0-Ai for linux-arm-kernel@lists.infradead.org; Thu, 23 Jan 2020 22:59:01 +0000 Received: from kernel.org (unknown [104.132.0.74]) (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 B264120718; Thu, 23 Jan 2020 22:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579820339; bh=zEuOC3td88tpHLgeBxK5wnCGR91LNEGrEovg5lXPIWk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Dluiq1xHhJ2Gs+g+ZFcZgKpL8P/eAedGwAdaXjAzu2QplsivR52091g9VkeMirFEP jebgeC+xNRqUWjKg8MGbvB0rCiLhlOn1Wj6kB1bwN08czoJej8O27m818gZ31q1arc TlWQuxLXCTj34+k7QbYjzyIG3eUIS1CZMkAYsiRA= MIME-Version: 1.0 In-Reply-To: <1575527759-26452-6-git-send-email-rajan.vaja@xilinx.com> References: <1574415814-19797-1-git-send-email-rajan.vaja@xilinx.com> <1575527759-26452-1-git-send-email-rajan.vaja@xilinx.com> <1575527759-26452-6-git-send-email-rajan.vaja@xilinx.com> Subject: Re: [PATCH v3 5/6] clk: zynqmp: Fix divider calculation From: Stephen Boyd To: Rajan Vaja , gustavo@embeddedor.com, jolly.shah@xilinx.com, m.tretter@pengutronix.de, mark.rutland@arm.com, mdf@kernel.org, michal.simek@xilinx.com, mturquette@baylibre.com, nava.manne@xilinx.com, robh+dt@kernel.org, tejas.patel@xilinx.com User-Agent: alot/0.8.1 Date: Thu, 23 Jan 2020 14:58:59 -0800 Message-Id: <20200123225859.B264120718@mail.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200123_145900_417768_6A0DD732 X-CRM114-Status: UNSURE ( 6.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rajan Vaja , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Rajan Vaja (2019-12-04 22:35:58) > zynqmp_clk_divider_round_rate() returns actual divider value > after calculating from parent rate and desired rate, even though > that rate is not supported by single divider of hardware. It is > also possible that such divisor value can be achieved through 2 > different dividers. As, Linux tries to set such divisor value(out > of range) in single divider set divider is getting failed. > > Fix the same by computing best possible combination of two > divisors which provides more accurate clock rate. > > Signed-off-by: Michal Simek > Signed-off-by: Tejas Patel > Signed-off-by: Rajan Vaja > --- Applied to clk-next _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel