From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Tue, 21 Jun 2011 16:33:21 -0500 Subject: [U-Boot] [PATCH 3/5] scsi/ahci: ata id little endian fix In-Reply-To: <1308692003-2488-1-git-send-email-robherring2@gmail.com> References: <1308692003-2488-1-git-send-email-robherring2@gmail.com> Message-ID: <1308692003-2488-4-git-send-email-robherring2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Rob Herring The ata id string always needs swapping, not just on BE machines. Signed-off-by: Rob Herring Cc: Wolfgang Denk --- drivers/block/ahci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c index a3ca2dc..d431c5a 100644 --- a/drivers/block/ahci.c +++ b/drivers/block/ahci.c @@ -468,7 +468,7 @@ static char *ata_id_strcpy(u16 *target, u16 *src, int len) { int i; for (i = 0; i < len / 2; i++) - target[i] = le16_to_cpu(src[i]); + target[i] = swab16(src[i]); return (char *)target; } -- 1.7.4.1