Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp327537ybh; Mon, 9 Mar 2020 22:55:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs+M3dzNjCvsL9pYdH93oZYpxLe3PO7aaqynee1O8jGDks2lrPCd6V6fOOXY2/XXbRNlL4b X-Received: by 2002:aca:5210:: with SMTP id g16mr21158oib.174.1583819720192; Mon, 09 Mar 2020 22:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583819720; cv=none; d=google.com; s=arc-20160816; b=rcxjgNVcLvC2Gt4ER+PCtktqu2y7ET5AneMo2lRNLRatNoGBL/6P5FDonndXwgoGFi ABwHuw9pSH5PeQX9kqYMwaQTi9g8IT/neBqVCquMTDW0RLGYS20v0kNVOn/zWxhpd3k/ PkRZ+clGpOy0U/ZQ390nheL42MyAEY13xNizwqlitZqqyVDNDKyvKzItSqBz6sFTGpTd Kfp300O3e1O//simZ220be552M7UcajFidLcLrIlGYeMr7qr+9bMRLr1QoE9SaiarLyG RNaMFdE9j5umxAxRZkn0rqElBH8no5I1KiweQbG0kE6xSEw7aurAwdJQW58U0dB+OmMm 8KEQ== 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=+BNK0534OW53KsJlps+KU5TiAGMgiUYuk3s2Rgi4K9w=; b=1Al2qgv+AUgUZFRSBg5cEbVwywG8lMZZcsl+5ZM2lr8yo0Eh8RPVMyy/YWPOAXwOSM Z7ioq3iAAtmvHBDqNATXe5aocVR2axuaxNDFl8T73/698gHZAZum5wUx4E3HMS7Yw3AF ShzHdoIGtyUc1WKLkdp7yCah6dyhsuO6Jm6T13Byj+E+BYODRa4Zhv4/XQt1kGk+s05G r2rQyNDxeVEVP8ZQl43TddzVgAD78kolv7DIcBtdgDeAtG3IvURh8/jr4GaW1fE1gqCO Sh3EIjbRLpGb9OwsSWRcuzhedcyYG7j2Op3KOF0uBXTZXcBeQ0xdO+Os+iZ6rlhSxPMt lbgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0jKuK38Z; 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 1si6993327otq.290.2020.03.09.22.55.07; Mon, 09 Mar 2020 22:55:20 -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=0jKuK38Z; 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 S1726205AbgCJFxe (ORCPT + 99 others); Tue, 10 Mar 2020 01:53:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:42416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726100AbgCJFxd (ORCPT ); Tue, 10 Mar 2020 01:53:33 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (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 6BDA42071B; Tue, 10 Mar 2020 05:53:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583819613; bh=JJxGvJHWNSGB7lyLfFPO7G8uwwA6FJNOdDTip0Btc5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0jKuK38ZlOi8uX0RBbOuec5pcMzbYImr8Vs+ILU5HuY5gxfPcCR0DD0yGFnMfD05r aRCTooV+leJHTbPZo3r0VlhB6tNnX8BajoS/Fbr6mendvdP/AMr9MbB0TZFkXY5+g0 e4cbDtThRMdLx2d4+aYyekaBmYJKTsjsBo7xexa8= Date: Tue, 10 Mar 2020 13:53:25 +0800 From: Shawn Guo To: peng.fan@nxp.com Cc: s.hauer@pengutronix.de, sboyd@kernel.org, robh+dt@kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, abel.vesa@nxp.com Subject: Re: [PATCH v2 03/14] clk: imx: Fix division by zero warning on pfdv2 Message-ID: <20200310055324.GF15729@dragon> References: <1582099197-20327-1-git-send-email-peng.fan@nxp.com> <1582099197-20327-4-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1582099197-20327-4-git-send-email-peng.fan@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 03:59:46PM +0800, peng.fan@nxp.com wrote: > From: Anson Huang > > Fix below division by zero warning: > > [ 3.176443] Division by zero in kernel. > [ 3.181809] CPU: 0 PID: 88 Comm: kworker/0:2 Not tainted 5.3.0-rc2-next-20190730-63758-ge08da51-dirty #124 > [ 3.191817] Hardware name: Freescale i.MX7ULP (Device Tree) > [ 3.197821] Workqueue: events dbs_work_handler > [ 3.202849] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [ 3.211058] [] (show_stack) from [] (dump_stack+0xd8/0x110) > [ 3.218820] [] (dump_stack) from [] (Ldiv0_64+0x8/0x18) > [ 3.226263] [] (Ldiv0_64) from [] (clk_pfdv2_set_rate+0x54/0xac) > [ 3.234487] [] (clk_pfdv2_set_rate) from [] (clk_change_rate+0x1a4/0x698) > [ 3.243468] [] (clk_change_rate) from [] (clk_change_rate+0x280/0x698) > [ 3.252180] [] (clk_change_rate) from [] (clk_core_set_rate_nolock+0x1a0/0x278) > [ 3.261679] [] (clk_core_set_rate_nolock) from [] (clk_set_rate+0x30/0x64) > [ 3.270743] [] (clk_set_rate) from [] (imx7ulp_set_target+0x184/0x2a4) > [ 3.279501] [] (imx7ulp_set_target) from [] (__cpufreq_driver_target+0x188/0x514) > [ 3.289196] [] (__cpufreq_driver_target) from [] (od_dbs_update+0x130/0x15c) > [ 3.298438] [] (od_dbs_update) from [] (dbs_work_handler+0x2c/0x5c) > [ 3.306914] [] (dbs_work_handler) from [] (process_one_work+0x2ac/0x704) > [ 3.315826] [] (process_one_work) from [] (worker_thread+0x2c/0x574) > [ 3.324404] [] (worker_thread) from [] (kthread+0x134/0x148) > [ 3.332278] [] (kthread) from [] (ret_from_fork+0x14/0x20) > [ 3.339858] Exception stack(0xe82d5fb0 to 0xe82d5ff8) > [ 3.345314] 5fa0: 00000000 00000000 00000000 00000000 > [ 3.353926] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 3.362519] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 > > Signed-off-by: Anson Huang > Signed-off-by: Peng Fan Applied, thanks.