[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <61a62404-6a44-53c3-6d17-89fa7a4c8551@broadcom.com>
Date: Fri, 17 Jul 2020 16:11:40 -0700
From: Scott Branden <scott.branden@...adcom.com>
To: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: Thierry Reding <thierry.reding@...il.com>,
Lee Jones <lee.jones@...aro.org>,
BCM Kernel Feedback <bcm-kernel-feedback-list@...adcom.com>,
linux-pwm@...r.kernel.org, linux-kernel@...r.kernel.org,
Rayagonda Kokatanur <rayagonda.kokatanur@...adcom.com>
Subject: Re: [PATCH v2] pwm: bcm-iproc: handle clk_get_rate() return
On 2020-07-17 4:04 p.m., Uwe Kleine-König wrote:
> On Fri, Jul 17, 2020 at 11:25:12AM -0700, Scott Branden wrote:
>> From: Rayagonda Kokatanur <rayagonda.kokatanur@...adcom.com>
>>
>> Handle clk_get_rate() returning <= 0 condition to avoid
>> possible division by zero.
> You advertise handling <= 0, but in the code only == 0 is checked. One
> of the two is wrong ...
I checked - clk_get_rate can't return negative values.
I'll update the commit message from <= to ==.
>
> Best regards
> Uwe
>
Thanks,
Scott
Powered by blists - more mailing lists