Re: [PATCH] ocxl: Fix endiannes bug in read_afu_name()

2018-12-11 Thread Greg Kurz
On Tue, 11 Dec 2018 11:24:08 +1100 Andrew Donnellan wrote: > On 11/12/18 11:05 am, Andrew Donnellan wrote: > > On 11/12/18 2:10 am, Greg Kurz wrote: > >> The double word returned by read_afu_info(OCXL_DVSEC_TEMPL_NAME) contains > >> four characters of the AFU name, read from the PCI config spac

Re: [PATCH] ocxl: Fix endiannes bug in read_afu_name()

2018-12-10 Thread Andrew Donnellan
On 11/12/18 11:05 am, Andrew Donnellan wrote: On 11/12/18 2:10 am, Greg Kurz wrote: The double word returned by read_afu_info(OCXL_DVSEC_TEMPL_NAME) contains four characters of the AFU name, read from the PCI config space, hence with a little-endian ordering. When composing the string, a big-end

Re: [PATCH] ocxl: Fix endiannes bug in read_afu_name()

2018-12-10 Thread Andrew Donnellan
On 11/12/18 2:10 am, Greg Kurz wrote: The double word returned by read_afu_info(OCXL_DVSEC_TEMPL_NAME) contains four characters of the AFU name, read from the PCI config space, hence with a little-endian ordering. When composing the string, a big-endian system must swap the bytes so that the char

Re: [PATCH] ocxl: Fix endiannes bug in read_afu_name()

2018-12-10 Thread Frederic Barrat
Le 10/12/2018 à 16:10, Greg Kurz a écrit : The double word returned by read_afu_info(OCXL_DVSEC_TEMPL_NAME) contains four characters of the AFU name, read from the PCI config space, hence with a little-endian ordering. When composing the string, a big-endian system must swap the bytes so that

[PATCH] ocxl: Fix endiannes bug in read_afu_name()

2018-12-10 Thread Greg Kurz
The double word returned by read_afu_info(OCXL_DVSEC_TEMPL_NAME) contains four characters of the AFU name, read from the PCI config space, hence with a little-endian ordering. When composing the string, a big-endian system must swap the bytes so that the characters appear in the right order. Do th