Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966992AbbBDRpU (ORCPT ); Wed, 4 Feb 2015 12:45:20 -0500 Received: from mail-lb0-f173.google.com ([209.85.217.173]:40340 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966728AbbBDRpS (ORCPT ); Wed, 4 Feb 2015 12:45:18 -0500 Message-ID: <54D25AAA.8070904@cogentembedded.com> Date: Wed, 04 Feb 2015 20:45:14 +0300 From: Sergei Shtylyov Organization: Cogent Embedded User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Wolfram Sang , Geert Uytterhoeven CC: Mike Turquette , Stephen Boyd , Laurent Pinchart , Ulrich Hecht , Wolfram Sang , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: shmobile: div6: Avoid division by zero in .round_rate() References: <1423052841-15194-1-git-send-email-geert+renesas@glider.be> <20150204173233.GA30930@katana> In-Reply-To: <20150204173233.GA30930@katana> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 694 Lines: 23 Hello. On 02/04/2015 08:32 PM, Wolfram Sang wrote: >> Anyone may call clk_round_rate() with a zero rate value, so we have to >> protect against that. >> Signed-off-by: Geert Uytterhoeven > Acked-by: Wolfram Sang > I agree that this should not be fixed in the core because the fixup is > really driver dependant. Dunno, zero frequency seems generally insane to me. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/