8 Sep
2008
8 Sep
'08
3:52 p.m.
On Thu, Sep 04, 2008 at 11:48:29AM +0100, Alan Horstmann wrote:
I assume that spi_transfer sends bytes in order, from the tx_buf position, and it seems clear that data[0] is the high byte that should go first. As msg[2] is u16 (why?), I would have thought that the byte at &msg[0] would be the low byte on LE, high byte on BE so it would only be correct on BE.
Your analysis makes sense to me.
Changing the code to use
...
fixes the problem here.
Could you supply a patch, please?