linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libata-2.6] AHCI: print port ID not number
@ 2005-02-24 19:26 Brett Russ
  2005-02-24 19:49 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brett Russ @ 2005-02-24 19:26 UTC (permalink / raw)
  To: linux-ide

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

The attached patch fixes the "ata#: error occurred, port reset" line to 
display the port id instead of the port number.

Signed-off-by: Brett Russ <russb@emc.com>

[-- Attachment #2: libata-2.6-ahci-printk.diff --]
[-- Type: text/x-patch, Size: 463 bytes --]

--- libata-2.6/drivers/scsi/ahci.c      Thu Feb 24 14:18:35 2005
+++ libata-2.6-ahci-printk/drivers/scsi/ahci.c  Thu Feb 24 14:21:41 2005
@@ -574,7 +574,7 @@
        writel(tmp, port_mmio + PORT_CMD);
        readl(port_mmio + PORT_CMD); /* flush */

-       printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->port_no);
+       printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->id);
 }

 static void ahci_eng_timeout(struct ata_port *ap)

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

* Re: [PATCH libata-2.6] AHCI: print port ID not number
  2005-02-24 19:26 [PATCH libata-2.6] AHCI: print port ID not number Brett Russ
@ 2005-02-24 19:49 ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2005-02-24 19:49 UTC (permalink / raw)
  To: Brett Russ; +Cc: linux-ide

Brett Russ wrote:
> The attached patch fixes the "ata#: error occurred, port reset" line to 
> display the port id instead of the port number.
> 
> Signed-off-by: Brett Russ <russb@emc.com>
> 
> 
> ------------------------------------------------------------------------
> 
> --- libata-2.6/drivers/scsi/ahci.c      Thu Feb 24 14:18:35 2005
> +++ libata-2.6-ahci-printk/drivers/scsi/ahci.c  Thu Feb 24 14:21:41 2005
> @@ -574,7 +574,7 @@
>         writel(tmp, port_mmio + PORT_CMD);
>         readl(port_mmio + PORT_CMD); /* flush */
> 
> -       printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->port_no);
> +       printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->id);

Your patch is corrupted, as <something> converted tabs to spaces.

I highly recommend finding a Unix machine with sendmail, and sending 
patches like this:

The ideal is an inline patch, rather than an attachment anyway.  e.g.

To: ...
From: ...
Subject: ...
<blank line>
Patch description
Patch

cat'd to 'sendmail -t'.  Sendmail (or another MTA which provides a 
/usr/sbin/sendmail wrapper) will automatically fill in other headers 
like Message-ID and Date.

	Jeff



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

* [PATCH libata-2.6] AHCI: print port ID not number
@ 2005-02-24 20:03 Brett Russ
  2005-02-24 23:35 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brett Russ @ 2005-02-24 20:03 UTC (permalink / raw)
  To: linux-ide

The attached patch fixes the "ata#: error occurred, port reset" line
to display the port id instead of the port number.

Signed-off-by: Brett Russ <russb@emc.com>

--- libata-2.6/drivers/scsi/ahci.c	Thu Feb 24 14:18:35 2005
+++ libata-2.6-ahci-printk/drivers/scsi/ahci.c	Thu Feb 24 14:21:41 2005
@@ -574,7 +574,7 @@
 	writel(tmp, port_mmio + PORT_CMD);
 	readl(port_mmio + PORT_CMD); /* flush */
 
-	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->port_no);
+	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->id);
 }
 
 static void ahci_eng_timeout(struct ata_port *ap)


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

* Re: [PATCH libata-2.6] AHCI: print port ID not number
  2005-02-24 20:03 Brett Russ
@ 2005-02-24 23:35 ` Jeff Garzik
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Garzik @ 2005-02-24 23:35 UTC (permalink / raw)
  To: Brett Russ; +Cc: linux-ide

Brett Russ wrote:
> The attached patch fixes the "ata#: error occurred, port reset" line
> to display the port id instead of the port number.
> 
> Signed-off-by: Brett Russ <russb@emc.com>
> 
> --- libata-2.6/drivers/scsi/ahci.c	Thu Feb 24 14:18:35 2005
> +++ libata-2.6-ahci-printk/drivers/scsi/ahci.c	Thu Feb 24 14:21:41 2005
> @@ -574,7 +574,7 @@
>  	writel(tmp, port_mmio + PORT_CMD);
>  	readl(port_mmio + PORT_CMD); /* flush */
>  
> -	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->port_no);
> +	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->id);

I applied this manually a little while ago, but in any case,

I verified that this patch applies correctly and successfully, so your 
patch submissions are coming in loud-and-clear now.

Thanks,

	Jeff




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

end of thread, other threads:[~2005-02-24 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 19:26 [PATCH libata-2.6] AHCI: print port ID not number Brett Russ
2005-02-24 19:49 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24 20:03 Brett Russ
2005-02-24 23:35 ` 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).