From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 21 Sep 2015 10:27:05 -0700 Subject: [U-Boot] [Patch v2 03/16] net/fm: Fix the endian issue of ucode uploading to IRAM In-Reply-To: <1442473548-15311-1-git-send-email-Qianyu.Gong@freescale.com> References: <1442473548-15311-1-git-send-email-Qianyu.Gong@freescale.com> Message-ID: <56003DE9.9060400@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/17/2015 12:05 AM, Gong Qianyu wrote: > From: Shaohui Xie > > Remove the redundant byte swap of the ucode before uploading to IRAM. > > Signed-off-by: Hou Zhiqiang > Signed-off-by: Shaohui Xie > Signed-off-by: Mingkai Hu > Signed-off-by: Gong Qianyu > --- > drivers/net/fm/eth.c | 69 +++++++++++++++++++++++++++------------------------- > drivers/net/fm/fm.c | 11 +++++---- > 2 files changed, 42 insertions(+), 38 deletions(-) > > diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c > index 6702f5a..cd05dbc 100644 > --- a/drivers/net/fm/eth.c > +++ b/drivers/net/fm/eth.c > @@ -109,7 +109,7 @@ static int tgec_is_fibre(struct eth_device *dev) > static u16 muram_readw(u16 *addr) > { > u32 base = (u32)addr & ~0x3; > - u32 val32 = *(u32 *)base; > + u32 val32 = in_be32((u32 *)base); > int byte_pos; > u16 ret; Reorder this patch with "fix compile warnings for 64-bit platform", or squash them if possible. York