linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata_piix: reorganize controller IDs
Date: Fri, 23 Nov 2007 20:21:25 -0500	[thread overview]
Message-ID: <47477C95.8050706@garzik.org> (raw)
In-Reply-To: <20071119041459.GA30919@htj.mynetwork.cxm>

Tejun Heo wrote:
> Move piix_pata_mwdma to top, rename ich9_2port_sata to ich8_2port_sata
> for consistency and use automatically incremented values instead of
> assigning fixed values to ease adding new controller IDs.
> 
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> ---
> applied to #tj-upstream-fixes.
> 
>  drivers/ata/ata_piix.c |   62 ++++++++++++++++++++++++------------------------
>  1 files changed, 31 insertions(+), 31 deletions(-)
> 
> diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
> index 80b735b..77fea05 100644
> --- a/drivers/ata/ata_piix.c
> +++ b/drivers/ata/ata_piix.c
> @@ -119,18 +119,18 @@ enum {
>  	PIIX_80C_SEC		= (1 << 7) | (1 << 6),
>  
>  	/* controller IDs */
> -	piix_pata_33		= 0,	/* PIIX4 at 33Mhz */
> -	ich_pata_33		= 1,	/* ICH up to UDMA 33 only */
> -	ich_pata_66		= 2,	/* ICH up to 66 Mhz */
> -	ich_pata_100		= 3,	/* ICH up to UDMA 100 */
> -	ich5_sata		= 5,
> -	ich6_sata		= 6,
> -	ich6_sata_ahci		= 7,
> -	ich6m_sata_ahci		= 8,
> -	ich8_sata_ahci		= 9,
> -	piix_pata_mwdma		= 10,	/* PIIX3 MWDMA only */
> -	tolapai_sata_ahci	= 11,
> -	ich9_2port_sata		= 12,
> +	piix_pata_mwdma		= 0,	/* PIIX3 MWDMA only */
> +	piix_pata_33,			/* PIIX4 at 33Mhz */
> +	ich_pata_33,			/* ICH up to UDMA 33 only */
> +	ich_pata_66,			/* ICH up to 66 Mhz */
> +	ich_pata_100,			/* ICH up to UDMA 100 */
> +	ich5_sata,
> +	ich6_sata,
> +	ich6_sata_ahci,
> +	ich6m_sata_ahci,
> +	ich8_sata_ahci,
> +	ich8_2port_sata,
> +	tolapai_sata_ahci,

When using automatically filled values, please move to a separate and 
distinct enum...

ACK everything else

	Jeff




      parent reply	other threads:[~2007-11-24  1:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19  4:14 [PATCH] ata_piix: reorganize controller IDs Tejun Heo
2007-11-19  4:16 ` [PATCH] ata_piix: only enable the first port on apple macbook pro Tejun Heo
2007-11-19  4:17   ` [PATCH] ata_piix: port enable for the first SATA controller of ICH8 is 0xf not 0x3 Tejun Heo
2007-11-24  1:22     ` Jeff Garzik
2007-11-24  1:22   ` [PATCH] ata_piix: only enable the first port on apple macbook pro Jeff Garzik
2007-11-24  1:21 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47477C95.8050706@garzik.org \
    --to=jeff@garzik.org \
    --cc=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).