Re: [U-Boot] [PATCH v3 02/20] bitops: Fix GENMASK definition for Sandbox

2019-01-31 Thread Vignesh R
On 31/01/19 6:11 AM, Simon Glass wrote: > On Mon, 28 Jan 2019 at 22:49, Vignesh R wrote: >> >> In arch/sandbox/include/asm/types.h we have >> Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as >> CONFIG_PHYS64 is not set >> >> This messes up the current logic of GENMASK

Re: [U-Boot] [PATCH v3 02/20] bitops: Fix GENMASK definition for Sandbox

2019-01-30 Thread Simon Glass
On Mon, 28 Jan 2019 at 22:49, Vignesh R wrote: > > In arch/sandbox/include/asm/types.h we have > Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as > CONFIG_PHYS64 is not set > > This messes up the current logic of GENMASK macro due to mismatch b/w > size of unsigned long (64

[U-Boot] [PATCH v3 02/20] bitops: Fix GENMASK definition for Sandbox

2019-01-28 Thread Vignesh R
In arch/sandbox/include/asm/types.h we have Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as CONFIG_PHYS64 is not set This messes up the current logic of GENMASK macro due to mismatch b/w size of unsigned long (64 bit) and that of BITS_PER_LONG. Fix this by using