From patchwork Mon Feb 20 20:09:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 142183 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 477BDB6F9F for ; Tue, 21 Feb 2012 07:10:49 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752512Ab2BTUK3 (ORCPT ); Mon, 20 Feb 2012 15:10:29 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:33447 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426Ab2BTUKU (ORCPT ); Mon, 20 Feb 2012 15:10:20 -0500 Received: by mail-pz0-f46.google.com with SMTP id d14so6084812dae.19 for ; Mon, 20 Feb 2012 12:10:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=nGEdykPeTxsUdURgXejat6Uff/s9hf1iXJBIbaEISs4=; b=AfsUPMTKY69seEyS9U+aoAcxWt9obVxM3P31VuA0rEuCjda/B+Vd5lTlo8PbO2rv9L rA6grtNqftjX230ug0PyfseSV8XuPxHHAs9Adg2tpZEDm2P7TVL1cbnP18VaZCSd4opb uMPxvNUxxGsXV//0MRNFwPsP3gVTL2nINYIZk= Received: by 10.68.73.234 with SMTP id o10mr54645708pbv.90.1329768620495; Mon, 20 Feb 2012 12:10:20 -0800 (PST) Received: from localhost.localdomain (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPS id p2sm25530232pbb.14.2012.02.20.12.10.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Feb 2012 12:10:19 -0800 (PST) From: Brian Norris To: Jeff Garzik Cc: , Linux Kernel , Tejun Heo , Kevin Cernekee , Brian Norris , Lin Ming , Norbert Preining , "Srivatsa S . Bhat" , Valdis Kletnieks , "Rafael J . Wysocki" Subject: [PATCH 3/3] ahci_platform: add STRICT_AHCI platform type Date: Mon, 20 Feb 2012 12:09:23 -0800 Message-Id: <1329768563-13715-4-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.5.4.2.g519b1 In-Reply-To: <1329768563-13715-1-git-send-email-computersforpeace@gmail.com> References: <1329768563-13715-1-git-send-email-computersforpeace@gmail.com> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Some platforms need to make use of the AHCI_HFLAG_STRICT_SPEC flag. Signed-off-by: Brian Norris --- drivers/ata/ahci_platform.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) -- 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_platform.c b/drivers/ata/ahci_platform.c index 48be4e1..50688c4 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -26,6 +26,7 @@ enum ahci_type { AHCI, /* standard platform ahci */ IMX53_AHCI, /* ahci on i.mx53 */ + STRICT_AHCI, /* stricter AHCI specification */ }; static struct platform_device_id ahci_devtype[] = { @@ -36,6 +37,9 @@ static struct platform_device_id ahci_devtype[] = { .name = "imx53-ahci", .driver_data = IMX53_AHCI, }, { + .name = "strict-ahci", + .driver_data = STRICT_AHCI, + }, { /* sentinel */ } }; @@ -56,6 +60,13 @@ static const struct ata_port_info ahci_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &ahci_pmp_retry_srst_ops, }, + [STRICT_AHCI] = { + AHCI_HFLAGS (AHCI_HFLAG_STRICT_SPEC), + .flags = AHCI_FLAG_COMMON, + .pio_mask = ATA_PIO4, + .udma_mask = ATA_UDMA6, + .port_ops = &ahci_ops, + }, }; static struct scsi_host_template ahci_platform_sht = {