From patchwork Mon Dec 29 03:22:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Tripathi X-Patchwork-Id: 424372 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8F6B71400DD for ; Mon, 29 Dec 2014 14:24:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbaL2DYA (ORCPT ); Sun, 28 Dec 2014 22:24:00 -0500 Received: from denmail01-v4020.amcc.com ([192.195.68.30]:46155 "EHLO denmail01.apm.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751863AbaL2DX7 (ORCPT ); Sun, 28 Dec 2014 22:23:59 -0500 Received: from apm.com (pnqlwv037.amcc.com [10.48.19.137]) by denmail01.apm.com (8.13.8/8.13.8) with ESMTP id sBT3NTon002506; Sun, 28 Dec 2014 20:23:30 -0700 Received: (from stripath@localhost) by apm.com (8.13.8/8.13.8/Submit) id sBT3NT36011318; Mon, 29 Dec 2014 08:53:29 +0530 From: Suman Tripathi To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mlangsdo@redhat.com, jcm@redhat.com, patches@apm.com, Suman Tripathi Subject: [PATCH v3 1/2] ahci_xgene: Fix the endianess issue in APM X-Gene SoC AHCI SATA controller driver. Date: Mon, 29 Dec 2014 08:52:46 +0530 Message-Id: <1419823367-11279-2-git-send-email-stripathi@apm.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1419823367-11279-1-git-send-email-stripathi@apm.com> References: <1419823367-11279-1-git-send-email-stripathi@apm.com> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org This patch fixes the big endian mode issue with function xgene_ahci_read_id. Signed-off-by: Suman Tripathi --- drivers/ata/ahci_xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 0f8538f..0ffd3c9 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -188,7 +188,7 @@ static unsigned int xgene_ahci_read_id(struct ata_device *dev, * * Clear reserved bit 8 (DEVSLP bit) as we don't support DEVSLP */ - id[ATA_ID_FEATURE_SUPP] &= ~(1 << 8); + id[ATA_ID_FEATURE_SUPP] &= cpu_to_le16(~(1 << 8)); return 0; }