lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 25 Sep 2014 09:47:34 +0200 (CEST)
From:	Nikolaus Voss <>
To:	Thierry Reding <>
cc:	Bo Shen <>,
	Nicolas Ferre <>,
Subject: Re: [PATCH] pwm: atmel-pwm: fix calculation of prescale value

Hi Thierry,

On Thu, 25 Sep 2014, Thierry Reding wrote:
> Please Cc the mailing list for PWM-related
> patches in the future.

ok, I ran on an old kernel...

> Also a couple more comments:
> In the patch description: "pwm frequency" should be "PWM frequency".


>> +	div = (unsigned long long)clk_get_rate(atmel_pwm->clk) * period_ns;
>> +	do_div(div, (int)1e9);
> 1e9 should be NSEC_PER_SEC.

>> -		}
>> +		div >>= 1;
>> +		++pres;
> Unless you really need the prefix increment behaviour (you don't in this
> case) I prefer using the postfix operator because it is slightly more
> idiomatic.

ok (as I mostly do C++ programming, I prefer the prefix as it is usually
more efficient for user-defined types).

> No need for you to respin the patch, I've fixed up the above when
> applying.



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists