linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pata_hpt37x: Fix cable detect bug spotted by Sergei
@ 2007-11-19 14:39 Alan Cox
  2007-11-24  0:36 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2007-11-19 14:39 UTC (permalink / raw)
  To: akpm, jeff, linux-ide

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

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c linux-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c
--- linux.vanilla-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c	2007-11-16 17:55:11.000000000 +0000
+++ linux-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c	2007-11-16 18:14:19.000000000 +0000
@@ -329,7 +329,7 @@
 	/* Restore state */
 	pci_write_config_byte(pdev, 0x5B, scr2);
 
-	if (ata66 & (1 << ap->port_no))
+	if (ata66 & (2 >> ap->port_no))
 		ap->cbl = ATA_CBL_PATA40;
 	else
 		ap->cbl = ATA_CBL_PATA80;

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

* Re: [PATCH] pata_hpt37x: Fix cable detect bug spotted by Sergei
  2007-11-19 14:39 [PATCH] pata_hpt37x: Fix cable detect bug spotted by Sergei Alan Cox
@ 2007-11-24  0:36 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-11-24  0:36 UTC (permalink / raw)
  To: Alan Cox; +Cc: akpm, linux-ide

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.24-rc2-mm1/drivers/ata/pata_hpt37x.c linux-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c
> --- linux.vanilla-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c	2007-11-16 17:55:11.000000000 +0000
> +++ linux-2.6.24-rc2-mm1/drivers/ata/pata_hpt37x.c	2007-11-16 18:14:19.000000000 +0000
> @@ -329,7 +329,7 @@
>  	/* Restore state */
>  	pci_write_config_byte(pdev, 0x5B, scr2);
>  
> -	if (ata66 & (1 << ap->port_no))
> +	if (ata66 & (2 >> ap->port_no))
>  		ap->cbl = ATA_CBL_PATA40;

applied #upstream-fixes



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

end of thread, other threads:[~2007-11-24  0:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19 14:39 [PATCH] pata_hpt37x: Fix cable detect bug spotted by Sergei Alan Cox
2007-11-24  0:36 ` 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).