Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967030AbbBDRcm (ORCPT ); Wed, 4 Feb 2015 12:32:42 -0500 Received: from sauhun.de ([89.238.76.85]:33646 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966708AbbBDRck (ORCPT ); Wed, 4 Feb 2015 12:32:40 -0500 Date: Wed, 4 Feb 2015 18:32:34 +0100 From: Wolfram Sang To: 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() Message-ID: <20150204173233.GA30930@katana> References: <1423052841-15194-1-git-send-email-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <1423052841-15194-1-git-send-email-geert+renesas@glider.be> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1733 Lines: 46 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 04, 2015 at 01:27:21PM +0100, Geert Uytterhoeven wrote: > Anyone may call clk_round_rate() with a zero rate value, so we have to > protect against that. >=20 > 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. --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJU0lexAAoJEBQN5MwUoCm2LnIP/145DCdCAQhqZ9kfNWC+y4ne M6uWIeVWwseZnzdu1wqhIqc1Zq/ca2Vfx/16IOYI5sBORx7XxbY2TSq+Pj+zchYc 6NKTNF1DRFFfVrzTemjSWZ9cqF5HP0pjlGwZXZLyYSgmiOEvF1m8jAtFvFTwPe0z svocac+hq7bnynmTg1y2XH54gGI1rwrtvS9QX7dYMXSC6tULNuppQ06Y/rVsZcIb Gd/dzE5dQv+PBL95dPSQgWOBhoGiaXENcE/EQlo6Q9YOOgBLIR1I6yJP8aQDb9cW Fie9skMA0rPSN6wuLJmA/0woMvoIOgbCDLK4sryJS7hD2i3rWm6orzayjSfp36qY UWDcWfcpFgCl6FHEhhuURgMx+lli2Qk9dwBWmuAU12/jIB3b71+Wobp49RZs759Z wCFyGF/Mx3FjO9Y15gCI7nhLe1ivKUIU3xQkM5kPVNRFDLV/efregXtaqtzUP6Vu DG4zp9SP45XJPAA1dqcf7Zw58m/g6XfhKOhNPiMOtMjpFCDLrkgz5Kla+hFSoBID RqIYmgQaOd1BjZ3D4jrn2YavBGj8rLvcE1ZiJknntv/w19LPFDV5LUB8Fgrp+hpf jSgKnit9N+ssEYHdOFUAyipX3ZXOwqKI+IGPjEjpVd0qCOJfha+ZXXiLvcW6ZddI RYQYykCkRePDZn/LPseo =p4lZ -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- -- 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/