* [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv
@ 2014-02-17 6:12 Siva Durga Prasad Paladugu
2014-02-17 6:50 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Siva Durga Prasad Paladugu @ 2014-02-17 6:12 UTC (permalink / raw)
To: u-boot
Typecast the argument with unsigned long
long for proper calculation of lldiv
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
---
-Fixes the issue of rounding of the multiplication result to
32-bit value
---
arch/arm/cpu/armv7/zynq/timer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c
index 2be253c..09a5547 100644
--- a/arch/arm/cpu/armv7/zynq/timer.c
+++ b/arch/arm/cpu/armv7/zynq/timer.c
@@ -107,7 +107,8 @@ void __udelay(unsigned long usec)
if (usec == 0)
return;
- countticks = lldiv(TIMER_TICK_HZ * usec, 1000000);
+ countticks = lldiv(((unsigned long long)TIMER_TICK_HZ * usec),
+ 1000000);
/* decrementing timer */
timeend = readl(&timer_base->counter) - countticks;
--
1.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv
2014-02-17 6:12 [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv Siva Durga Prasad Paladugu
@ 2014-02-17 6:50 ` Michal Simek
2014-02-17 9:07 ` Albert ARIBAUD
0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2014-02-17 6:50 UTC (permalink / raw)
To: u-boot
On 02/17/2014 07:12 AM, Siva Durga Prasad Paladugu wrote:
> Typecast the argument with unsigned long
> long for proper calculation of lldiv
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> ---
> -Fixes the issue of rounding of the multiplication result to
> 32-bit value
We found this in connection to eeprom write test.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Albert: This is the bug fixed I was talking you about on IRC.
Will add it to my zynq pull request if this is fine for others.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140217/79955143/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv
2014-02-17 6:50 ` Michal Simek
@ 2014-02-17 9:07 ` Albert ARIBAUD
2014-02-17 9:10 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Albert ARIBAUD @ 2014-02-17 9:07 UTC (permalink / raw)
To: u-boot
Hi Michal,
On Mon, 17 Feb 2014 07:50:26 +0100, Michal Simek <monstr@monstr.eu>
wrote:
> On 02/17/2014 07:12 AM, Siva Durga Prasad Paladugu wrote:
> > Typecast the argument with unsigned long
> > long for proper calculation of lldiv
> >
> > Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> > ---
> > -Fixes the issue of rounding of the multiplication result to
> > 32-bit value
>
> We found this in connection to eeprom write test.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>
> Albert: This is the bug fixed I was talking you about on IRC.
> Will add it to my zynq pull request if this is fine for others.
Fine for me at least. As soon as my current PR to u-boot/master is
applied (cc: Tom), I'll resume applying patches, starting with your Zynq
PR, so if it was updated meanwhile, I'll apply the updated one.
> Thanks,
> Michal
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv
2014-02-17 9:07 ` Albert ARIBAUD
@ 2014-02-17 9:10 ` Michal Simek
0 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2014-02-17 9:10 UTC (permalink / raw)
To: u-boot
On 02/17/2014 10:07 AM, Albert ARIBAUD wrote:
> Hi Michal,
>
> On Mon, 17 Feb 2014 07:50:26 +0100, Michal Simek <monstr@monstr.eu>
> wrote:
>
>> On 02/17/2014 07:12 AM, Siva Durga Prasad Paladugu wrote:
>>> Typecast the argument with unsigned long
>>> long for proper calculation of lldiv
>>>
>>> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
>>> ---
>>> -Fixes the issue of rounding of the multiplication result to
>>> 32-bit value
>>
>> We found this in connection to eeprom write test.
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>
>> Albert: This is the bug fixed I was talking you about on IRC.
>> Will add it to my zynq pull request if this is fine for others.
>
> Fine for me at least. As soon as my current PR to u-boot/master is
> applied (cc: Tom), I'll resume applying patches, starting with your Zynq
> PR, so if it was updated meanwhile, I'll apply the updated one.
I am keeping my eyes on it too.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140217/ff4881f6/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-17 9:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 6:12 [U-Boot] [PATCH] arm: zynq: correct the argument to lldiv Siva Durga Prasad Paladugu
2014-02-17 6:50 ` Michal Simek
2014-02-17 9:07 ` Albert ARIBAUD
2014-02-17 9:10 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.