[Top] [All Lists]

RE: [PATCH v2 1/2] usb: chipidea: big-endian support

To: "'Marc Kleine-Budde'" <>, "'Alexander Shishkin'" <>
Subject: RE: [PATCH v2 1/2] usb: chipidea: big-endian support
From: "Svetoslav Neykov" <>
Date: Fri, 10 May 2013 00:22:41 +0300
Cc: "'Ralf Baechle'" <>, "'Greg Kroah-Hartman'" <>, "'Gabor Juhos'" <>, "'John Crispin'" <>, "'Alan Stern'" <>, "'Luis R. Rodriguez'" <>, <>, <>
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <> <> <> <>
Thread-index: AQJ6crEKrmvOIJbIiJ7dXEbCRe8hgQIpA3+vAboxlnUDZ7H99pdqtydg
Hi Marc,

Marc Kleine-Budde [] (On Thursday, March 28, 2013
4:16 PM)
>On 03/28/2013 10:28 AM, Alexander Shishkin wrote:
>> Svetoslav Neykov <> writes:
>>> Convert between big-endian and little-endian format when accessing
>>> the usb controller structures which are little-endian by
>>> specification. Fix cases where the little-endian memory layout is
>>> taken for granted. The patch doesn't have any effect on the already
>>> supported little-endian architectures.
>Has anyone tested how the cpu_to_le32 and vice versa effects the
>load/store operations? Does the compiler generate full 32 bit accesses
>on mips (and big endian arm) or is a byte-shift-or pattern used?

Better late than never... I have checked your question, the value is loaded
in a register and then swapped, so the read is performed only once.


<Prev in Thread] Current Thread [Next in Thread>