public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libata-sff: use our IRQ defines
@ 2006-09-26 16:55 Alan Cox
  2006-09-26 17:35 ` Jeff Garzik
  2006-09-26 20:44 ` Olivier Galibert
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Cox @ 2006-09-26 16:55 UTC (permalink / raw)
  To: jgarzik, linux-kernel

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-mm1/drivers/ata/libata-sff.c linux-2.6.18-mm1/drivers/ata/libata-sff.c
--- linux.vanilla-2.6.18-mm1/drivers/ata/libata-sff.c	2006-09-25 12:10:08.000000000 +0100
+++ linux-2.6.18-mm1/drivers/ata/libata-sff.c	2006-09-25 16:04:41.000000000 +0100
@@ -881,7 +881,7 @@
 	probe_ent->private_data = port[0]->private_data;
 
 	if (port_mask & ATA_PORT_PRIMARY) {
-		probe_ent->irq = 14;
+		probe_ent->irq = ATA_PRIMARY_IRQ;
 		probe_ent->port[0].cmd_addr = ATA_PRIMARY_CMD;
 		probe_ent->port[0].altstatus_addr =
 		probe_ent->port[0].ctl_addr = ATA_PRIMARY_CTL;
@@ -896,7 +896,7 @@
 
 	if (port_mask & ATA_PORT_SECONDARY) {
 		if (probe_ent->irq)
-			probe_ent->irq2 = 15;
+			probe_ent->irq2 = ATA_SECONDARY_IRQ;
 		else
 			probe_ent->irq = 15;
 		probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;


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

* Re: [PATCH] libata-sff: use our IRQ defines
  2006-09-26 16:55 [PATCH] libata-sff: use our IRQ defines Alan Cox
@ 2006-09-26 17:35 ` Jeff Garzik
  2006-09-26 20:44 ` Olivier Galibert
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2006-09-26 17:35 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Alan Cox wrote:
> Signed-off-by: Alan Cox <alan@redhat.com>

applied



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

* Re: [PATCH] libata-sff: use our IRQ defines
  2006-09-26 16:55 [PATCH] libata-sff: use our IRQ defines Alan Cox
  2006-09-26 17:35 ` Jeff Garzik
@ 2006-09-26 20:44 ` Olivier Galibert
  2006-09-26 21:19   ` Alan Cox
  1 sibling, 1 reply; 5+ messages in thread
From: Olivier Galibert @ 2006-09-26 20:44 UTC (permalink / raw)
  To: Alan Cox; +Cc: jgarzik, linux-kernel

On Tue, Sep 26, 2006 at 05:55:37PM +0100, Alan Cox wrote:
> Signed-off-by: Alan Cox <alan@redhat.com>
> 
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.18-mm1/drivers/ata/libata-sff.c linux-2.6.18-mm1/drivers/ata/libata-sff.c
> --- linux.vanilla-2.6.18-mm1/drivers/ata/libata-sff.c	2006-09-25 12:10:08.000000000 +0100
> +++ linux-2.6.18-mm1/drivers/ata/libata-sff.c	2006-09-25 16:04:41.000000000 +0100
> @@ -881,7 +881,7 @@
>  	probe_ent->private_data = port[0]->private_data;
>  
>  	if (port_mask & ATA_PORT_PRIMARY) {
> -		probe_ent->irq = 14;
> +		probe_ent->irq = ATA_PRIMARY_IRQ;
>  		probe_ent->port[0].cmd_addr = ATA_PRIMARY_CMD;
>  		probe_ent->port[0].altstatus_addr =
>  		probe_ent->port[0].ctl_addr = ATA_PRIMARY_CTL;
> @@ -896,7 +896,7 @@
>  
>  	if (port_mask & ATA_PORT_SECONDARY) {
>  		if (probe_ent->irq)
> -			probe_ent->irq2 = 15;
> +			probe_ent->irq2 = ATA_SECONDARY_IRQ;
>  		else
>  			probe_ent->irq = 15;

Isn't that one supposed to be ATA_SECONDARY_IRQ too?

>  		probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;
> 

  OG.

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

* Re: [PATCH] libata-sff: use our IRQ defines
  2006-09-26 20:44 ` Olivier Galibert
@ 2006-09-26 21:19   ` Alan Cox
  2006-09-26 21:25     ` Jeff Garzik
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2006-09-26 21:19 UTC (permalink / raw)
  To: Olivier Galibert; +Cc: jgarzik, linux-kernel

Ar Maw, 2006-09-26 am 22:44 +0200, ysgrifennodd Olivier Galibert:
> >  		if (probe_ent->irq)
> > -			probe_ent->irq2 = 15;
> > +			probe_ent->irq2 = ATA_SECONDARY_IRQ;
> >  		else
> >  			probe_ent->irq = 15;
> 
> Isn't that one supposed to be ATA_SECONDARY_IRQ too?
> 
> >  		probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;

Duh yes...

(adds another paper bag to the pile)


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

* Re: [PATCH] libata-sff: use our IRQ defines
  2006-09-26 21:19   ` Alan Cox
@ 2006-09-26 21:25     ` Jeff Garzik
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2006-09-26 21:25 UTC (permalink / raw)
  To: Alan Cox; +Cc: Olivier Galibert, linux-kernel

Alan Cox wrote:
> Ar Maw, 2006-09-26 am 22:44 +0200, ysgrifennodd Olivier Galibert:
>>>  		if (probe_ent->irq)
>>> -			probe_ent->irq2 = 15;
>>> +			probe_ent->irq2 = ATA_SECONDARY_IRQ;
>>>  		else
>>>  			probe_ent->irq = 15;
>> Isn't that one supposed to be ATA_SECONDARY_IRQ too?
>>
>>>  		probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;
> 
> Duh yes...
> 
> (adds another paper bag to the pile)

committed obvious fix...



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

end of thread, other threads:[~2006-09-26 21:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 16:55 [PATCH] libata-sff: use our IRQ defines Alan Cox
2006-09-26 17:35 ` Jeff Garzik
2006-09-26 20:44 ` Olivier Galibert
2006-09-26 21:19   ` Alan Cox
2006-09-26 21:25     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox