linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai
@ 2007-08-31  4:36 Jason Gaston
  2007-08-31  7:46 ` Jeff Garzik
  2007-08-31  7:50 ` Jeff Garzik
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Gaston @ 2007-08-31  4:36 UTC (permalink / raw)
  To: jgarzik, jason.d.gaston, linux-ide, linux-kernel, htejun

Resend trying to remove 8-bit characters in the email.

This patch adds the Intel Tolapai IDE mode SATA controller DID's.

Signed-off-by:  Jason Gaston <jason.d.gaston@intel.com>

--- linux-2.6.23-rc4/drivers/ata/ata_piix.c.orig	2007-08-27 18:32:35.000000000 -0700
+++ linux-2.6.23-rc4/drivers/ata/ata_piix.c	2007-08-29 17:13:13.000000000 -0700
@@ -130,6 +130,7 @@
 	ich6m_sata_ahci		= 8,
 	ich8_sata_ahci		= 9,
 	piix_pata_mwdma		= 10,	/* PIIX3 MWDMA only */
+	tolapai_sata_ahci	= 11,
 
 	/* constants for mapping table */
 	P0			= 0,  /* port 0 */
@@ -253,6 +254,8 @@
 	{ 0x8086, 0x292d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_ahci },
 	/* SATA Controller IDE (ICH9M) */
 	{ 0x8086, 0x292e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_ahci },
+	/* SATA Controller IDE (Tolapai) */
+	{ 0x8086, 0x5028, PCI_ANY_ID, PCI_ANY_ID, 0, 0, tolapai_sata_ahci },
 
 	{ }	/* terminate list */
 };
@@ -441,12 +444,25 @@
 	},
 };
 
+static const struct piix_map_db tolapai_map_db = {
+        .mask = 0x3,
+        .port_enable = 0x3,
+        .map = {
+                /* PM   PS   SM   SS       MAP */
+                {  P0,  NA,  P1,  NA }, /* 00b */
+                {  RV,  RV,  RV,  RV }, /* 01b */
+                {  RV,  RV,  RV,  RV }, /* 10b */
+                {  RV,  RV,  RV,  RV },
+        },
+};
+
 static const struct piix_map_db *piix_map_db_table[] = {
 	[ich5_sata]		= &ich5_map_db,
 	[ich6_sata]		= &ich6_map_db,
 	[ich6_sata_ahci]	= &ich6_map_db,
 	[ich6m_sata_ahci]	= &ich6m_map_db,
 	[ich8_sata_ahci]	= &ich8_map_db,
+	[tolapai_sata_ahci]	= &tolapai_map_db,
 };
 
 static struct ata_port_info piix_port_info[] = {
@@ -560,6 +576,17 @@
 		.mwdma_mask	= 0x06, /* mwdma1-2 ?? CHECK 0 should be ok but slow */
 		.port_ops	= &piix_pata_ops,
 	},
+
+	/* tolapai_sata_ahci: 11: */
+	{
+		.sht		= &piix_sht,
+		.flags		= PIIX_SATA_FLAGS | PIIX_FLAG_SCR |
+				  PIIX_FLAG_AHCI,
+		.pio_mask	= 0x1f,	/* pio0-4 */
+		.mwdma_mask	= 0x07, /* mwdma0-2 */
+		.udma_mask	= ATA_UDMA6,
+		.port_ops	= &piix_sata_ops,
+	},
 };
 
 static struct pci_bits piix_enable_bits[] = {

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai
  2007-08-31  4:36 [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai Jason Gaston
@ 2007-08-31  7:46 ` Jeff Garzik
  2007-08-31  7:50 ` Jeff Garzik
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-08-31  7:46 UTC (permalink / raw)
  To: Jason Gaston; +Cc: linux-ide, linux-kernel, htejun

In the future, consider following the information convention we have for 
patch revisions:

	[PATCH 2.6.23-rc4] ata_piix: do some stuff
	[PATCH 2.6.23-rc4 v2] ata_piix: do some stuff
	[PATCH 2.6.23-rc4 v3] ata_piix: do some stuff
	[PATCH 2.6.23-rc4 v4] ata_piix: do some stuff
	etc.

Regards,

	Jeff




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai
  2007-08-31  4:36 [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai Jason Gaston
  2007-08-31  7:46 ` Jeff Garzik
@ 2007-08-31  7:50 ` Jeff Garzik
  2007-09-07 23:42   ` Gaston, Jason D
  1 sibling, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2007-08-31  7:50 UTC (permalink / raw)
  To: Jason Gaston; +Cc: linux-ide, linux-kernel, htejun

Jason Gaston wrote:
> Resend trying to remove 8-bit characters in the email.
> 
> This patch adds the Intel Tolapai IDE mode SATA controller DID's.
> 
> Signed-off-by:  Jason Gaston <jason.d.gaston@intel.com>

applied




^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai
  2007-08-31  7:50 ` Jeff Garzik
@ 2007-09-07 23:42   ` Gaston, Jason D
  2007-09-07 23:48     ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Gaston, Jason D @ 2007-09-07 23:42 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-ide, linux-kernel, htejun

>-----Original Message-----
>From: Jeff Garzik [mailto:jeff@garzik.org]
>Sent: Friday, August 31, 2007 12:51 AM
>To: Gaston, Jason D
>Cc: linux-ide@vger.kernel.org; linux-kernel@vger.kernel.org;
>htejun@gmail.com
>Subject: Re: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch
for
>Intel Tolapai
>
>Jason Gaston wrote:
>> Resend trying to remove 8-bit characters in the email.
>>
>> This patch adds the Intel Tolapai IDE mode SATA controller DID's.
>>
>> Signed-off-by:  Jason Gaston <jason.d.gaston@intel.com>
>
>applied

Jeff,

I just noticed that the following section came through as spaces instead
of tabs.  Do I need to resend a corrected version?

+static const struct piix_map_db tolapai_map_db = {
+        .mask = 0x3,
+        .port_enable = 0x3,
+        .map = {
+                /* PM   PS   SM   SS       MAP */
+                {  P0,  NA,  P1,  NA }, /* 00b */
+                {  RV,  RV,  RV,  RV }, /* 01b */
+                {  RV,  RV,  RV,  RV }, /* 10b */
+                {  RV,  RV,  RV,  RV },
+        },
+};
+

Thanks,

Jason

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai
  2007-09-07 23:42   ` Gaston, Jason D
@ 2007-09-07 23:48     ` Jeff Garzik
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-09-07 23:48 UTC (permalink / raw)
  To: Gaston, Jason D; +Cc: linux-ide, linux-kernel, htejun

Gaston, Jason D wrote:
>> -----Original Message-----
>> From: Jeff Garzik [mailto:jeff@garzik.org]
>> Sent: Friday, August 31, 2007 12:51 AM
>> To: Gaston, Jason D
>> Cc: linux-ide@vger.kernel.org; linux-kernel@vger.kernel.org;
>> htejun@gmail.com
>> Subject: Re: [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch
> for
>> Intel Tolapai
>>
>> Jason Gaston wrote:
>>> Resend trying to remove 8-bit characters in the email.
>>>
>>> This patch adds the Intel Tolapai IDE mode SATA controller DID's.
>>>
>>> Signed-off-by:  Jason Gaston <jason.d.gaston@intel.com>
>> applied
> 
> Jeff,
> 
> I just noticed that the following section came through as spaces instead
> of tabs.  Do I need to resend a corrected version?
> 
> +static const struct piix_map_db tolapai_map_db = {
> +        .mask = 0x3,
> +        .port_enable = 0x3,
> +        .map = {
> +                /* PM   PS   SM   SS       MAP */
> +                {  P0,  NA,  P1,  NA }, /* 00b */
> +                {  RV,  RV,  RV,  RV }, /* 01b */
> +                {  RV,  RV,  RV,  RV }, /* 10b */
> +                {  RV,  RV,  RV,  RV },
> +        },
> +};

that's always nice, yes :)

even better would be to run a script through #upstream, accomplishing 
the same thing but for many drivers ;-)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-07 23:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-31  4:36 [PATCH 2.6.23-rc4][reRESEND] ata_piix: IDE mode SATA patch for Intel Tolapai Jason Gaston
2007-08-31  7:46 ` Jeff Garzik
2007-08-31  7:50 ` Jeff Garzik
2007-09-07 23:42   ` Gaston, Jason D
2007-09-07 23:48     ` Jeff Garzik

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).