Re: [PATCH net-next 08/19] net: usb: aqc111: Implement TX data path

From: Oliver Neukum <oneukum@suse.com>
Date: 2018-10-08 14:07:53
Also in: linux-usb

On Mo, 2018-10-08 at 13:43 +0000, Igor Russkikh wrote:
quoted
quoted
+	skb_push(skb, AQ_TX_HEADER_SIZE);
+	cpu_to_le64s(&tx_hdr);
Is that portable? tx_hdr is a structure of 2x u32 bitfields.  What
endian have you tested that one?
You are right, this is wrong for BE hardware.

We don't have such a hardware to check unfortunately.
Think its better to drop endianess conversions and declare
the driver as little endian only.

Do you think that'll be acceptable?
No. If worse comes to worse define it u64 and set the values
manually.

	Regards
		Oliver
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help