From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Date: Wed, 1 Jun 2011 14:10:26 -0500 Subject: [U-Boot] [PATCH 4/5] scsi/ahci: ata id little endian fix In-Reply-To: <1306955427-18940-1-git-send-email-robherring2@gmail.com> References: <1306955427-18940-1-git-send-email-robherring2@gmail.com> Message-ID: <1306955427-18940-5-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 --- 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