Re: Looking for a solution for CPM FSL SPI driver that swaps 16 bits words

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 13, 2023 at 09:55:25AM +0000, Christophe Leroy wrote:
> Le 07/03/2023 à 23:16, Mark Brown a écrit :

> > So the CPU is big endian, memory has a big endian word in it and the
> > controller is then sending as little endian?  That would mean that the
> > driver for the controller is implementing SPI_LSB_FIRST mode without
> > being asked (IIRC there is an option to run these systems LE, I don't
> > know if the controller is just always little endian or always byte
> > swapping).  That seems like a bug in the driver for the controller.

> What does SPI_LSB_FIRST stands for ? From what you say, shall I 
> understand that it means Least Significant _Byte_ first ?

> I'm asking because as far as I can see, for the controller SPI_LSB_FIRST 
> means Least Significant _bit_ first. Is that wrong ?

Ah, you're right - it's bit rather than byte.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux