sata_mv: cleanup chipset GENeration FLAGS

Previous thread: USB: ohci-s3c2410: fix name of bus clock by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:31 pm. (1 message)

Next thread: sata_mv: rearrange mv_start_dma() and friends by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:31 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:31 pm

Gitweb:     http://git.kernel.org/linus/91b1a84c10869e2e46a576e5367de3166bff8ecc
Commit:     91b1a84c10869e2e46a576e5367de3166bff8ecc
Parent:     8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84
Author:     Mark Lord <liml@rtr.ca>
AuthorDate: Fri Jan 30 18:46:39 2009 -0500
Committer:  Jeff Garzik <jgarzik@redhat.com>
CommitDate: Tue Mar 24 22:02:38 2009 -0400

    sata_mv: cleanup chipset GENeration FLAGS
    
    Clean up the chipset GENeration FLAGS, and rename them
    for consistency with other uses of GEN_XX within sata_mv.
    
    Signed-off-by: Mark Lord <mlord@pobox.com>
    Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
---
 drivers/ata/sata_mv.c |   31 ++++++++++++++-----------------
 1 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c
index 74b1080..3dc3554 100644
--- a/drivers/ata/sata_mv.c
+++ b/drivers/ata/sata_mv.c
@@ -120,14 +120,15 @@ enum {
 	MV_FLAG_IRQ_COALESCE	= (1 << 29),  /* IRQ coalescing capability */
 
 	MV_COMMON_FLAGS		= ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
-				  ATA_FLAG_MMIO | ATA_FLAG_NO_ATAPI |
-				  ATA_FLAG_PIO_POLLING,
+				  ATA_FLAG_MMIO | ATA_FLAG_PIO_POLLING,
 
-	MV_6XXX_FLAGS		= MV_FLAG_IRQ_COALESCE,
+	MV_GEN_I_FLAGS		= MV_COMMON_FLAGS | ATA_FLAG_NO_ATAPI,
 
-	MV_GENIIE_FLAGS		= MV_COMMON_FLAGS | MV_6XXX_FLAGS |
+	MV_GEN_II_FLAGS		= MV_COMMON_FLAGS | MV_FLAG_IRQ_COALESCE |
 				  ATA_FLAG_PMP | ATA_FLAG_ACPI_SATA |
-				  ATA_FLAG_NCQ | ATA_FLAG_AN,
+				  ATA_FLAG_NCQ | ATA_FLAG_NO_ATAPI,
+
+	MV_GEN_IIE_FLAGS	= MV_GEN_II_FLAGS | ATA_FLAG_AN,
 
 	CRQB_FLAG_READ		= (1 << 0),
 	CRQB_TAG_SHIFT		= 1,
@@ -603,53 +604,49 @@ static struct ata_port_operations mv_iie_ops = {
 
 static const struct ata_port_info mv_port_info[] = {
 	{  /* chip_504x */
-		.flags		= MV_COMMON_FLAGS,
+		.flags		= MV_GEN_I_FLAGS,
 		.pio_mask	= 0x1f,	/* pio0-4 */
 		.udma_mask	= ATA_UDMA6,
 		.port_ops	= &mv5_ops,
 	},
 	{  /* chip_508x */
-		.flags		= MV_COMMON_FLAGS | ...
Previous thread: USB: ohci-s3c2410: fix name of bus clock by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:31 pm. (1 message)

Next thread: sata_mv: rearrange mv_start_dma() and friends by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:31 pm. (1 message)