Re: [PATCH v3] regmap: fix alignment issue

2020-06-01 Thread Mark Brown
On Fri, 29 May 2020 21:25:38 +0200, Jens Thoms Toerring wrote: > The assembly and disassembly of data to be sent to or received from a > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > that extract or insert data items from or into a buffer, using > assignments. In some cases

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > The assembly and disassembly of data to be sent to or received from a > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > that extract or insert data items from or into a buffer, using > assignments. In some

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > pointers with odd addresses. On architectures with strict alignment > requirements this results in a kernel crash for u16 and u32 values. Which architectures out of interest? signature.asc Description: PGP signature

[PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Jens Thoms Toerring
The assembly and disassembly of data to be sent to or received from a device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) that extract or insert data items from or into a buffer, using assignments. In some cases those functions are called with buffer pointers with odd addresses. On