Re: [PATCH 6/6] spi: altera: fix size mismatch on 64 bit processors

2020-06-11 Thread Xu Yilun
On Thu, Jun 11, 2020 at 12:04:08PM +0100, Mark Brown wrote: > On Thu, Jun 11, 2020 at 11:25:11AM +0800, Xu Yilun wrote: > > From: Matthew Gerlach > > > > The spi-altera driver was originally written with a 32 > > bit processor, where sizeof(unsigned long) is 4. On a > > 64 bit processor sizeof(u

Re: [PATCH 6/6] spi: altera: fix size mismatch on 64 bit processors

2020-06-11 Thread Mark Brown
On Thu, Jun 11, 2020 at 11:25:11AM +0800, Xu Yilun wrote: > From: Matthew Gerlach > > The spi-altera driver was originally written with a 32 > bit processor, where sizeof(unsigned long) is 4. On a > 64 bit processor sizeof(unsigned long) is 8. Change the structure > member to u32 to match the a

[PATCH 6/6] spi: altera: fix size mismatch on 64 bit processors

2020-06-10 Thread Xu Yilun
From: Matthew Gerlach The spi-altera driver was originally written with a 32 bit processor, where sizeof(unsigned long) is 4. On a 64 bit processor sizeof(unsigned long) is 8. Change the structure member to u32 to match the actual size of the control register. Signed-off-by: Matthew Gerlach -