All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libata: Early CFA adapters are not required to support mode setting
@ 2007-02-05 16:28 Alan
  2007-02-05 22:52 ` Andrew Morton
  2007-02-07  1:04 ` Jeff Garzik
  0 siblings, 2 replies; 5+ messages in thread
From: Alan @ 2007-02-05 16:28 UTC (permalink / raw)
  To: akpm, linux-ide, jeff

If we are doing a PIO setup for a CFA card and it blows up with a device
error then assume it is an older CFA card which doesn't support this
rather than failing the device out of existance.

Stands seperate to the quieting patch but that is obviously useful with
this change.

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

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-rc6-mm3/drivers/ata/libata-core.c linux-2.6.20-rc6-mm3/drivers/ata/libata-core.c
--- linux.vanilla-2.6.20-rc6-mm3/drivers/ata/libata-core.c	2007-01-31 14:20:39.000000000 +0000
+++ linux-2.6.20-rc6-mm3/drivers/ata/libata-core.c	2007-02-01 16:14:01.000000000 +0000
@@ -2404,6 +2460,10 @@
 		dev->flags |= ATA_DFLAG_PIO;
 
 	err_mask = ata_dev_set_xfermode(dev);
+	/* Old CFA may refuse this command, which is just fine */
+	if (dev->xfer_shift == ATA_SHIFT_PIO && ata_id_is_cfa(dev->id))
+        	err_mask &= ~AC_ERR_DEV;
+
 	if (err_mask) {
 		ata_dev_printk(dev, KERN_ERR, "failed to set xfermode "
 			       "(err_mask=0x%x)\n", err_mask);

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

* Re: [PATCH] libata: Early CFA adapters are not required to support mode setting
  2007-02-05 16:28 [PATCH] libata: Early CFA adapters are not required to support mode setting Alan
@ 2007-02-05 22:52 ` Andrew Morton
  2007-02-05 23:11   ` Alan
  2007-02-07  1:04 ` Jeff Garzik
  1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-02-05 22:52 UTC (permalink / raw)
  To: Alan; +Cc: linux-ide, jeff

On Mon, 5 Feb 2007 16:28:30 +0000
Alan <alan@lxorguk.ukuu.org.uk> wrote:

> If we are doing a PIO setup for a CFA card and it blows up with a device
> error then assume it is an older CFA card which doesn't support this
> rather than failing the device out of existance.
> 
> Stands seperate to the quieting patch but that is obviously useful with
> this change.
> 
> Signed-off-by: Alan Cox <alan@redhat.com>
> 
> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-rc6-mm3/drivers/ata/libata-core.c linux-2.6.20-rc6-mm3/drivers/ata/libata-core.c
> --- linux.vanilla-2.6.20-rc6-mm3/drivers/ata/libata-core.c	2007-01-31 14:20:39.000000000 +0000
> +++ linux-2.6.20-rc6-mm3/drivers/ata/libata-core.c	2007-02-01 16:14:01.000000000 +0000
> @@ -2404,6 +2460,10 @@
>  		dev->flags |= ATA_DFLAG_PIO;
>  
>  	err_mask = ata_dev_set_xfermode(dev);
> +	/* Old CFA may refuse this command, which is just fine */
> +	if (dev->xfer_shift == ATA_SHIFT_PIO && ata_id_is_cfa(dev->id))
> +        	err_mask &= ~AC_ERR_DEV;
> +
>  	if (err_mask) {
>  		ata_dev_printk(dev, KERN_ERR, "failed to set xfermode "
>  			       "(err_mask=0x%x)\n", err_mask);

This hunk is already in
libata-fix-hopefully-all-the-remaining-problems-with.patch.  Should I drop
libata-fix-hopefully-all-the-remaining-problems-with.patch?

If its presence can affect the validity of testing these four patches then
perhaps yes..


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

* Re: [PATCH] libata: Early CFA adapters are not required to support mode setting
  2007-02-05 22:52 ` Andrew Morton
@ 2007-02-05 23:11   ` Alan
  2007-02-05 23:14     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Alan @ 2007-02-05 23:11 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-ide, jeff

> libata-fix-hopefully-all-the-remaining-problems-with.patch.  Should I drop
> libata-fix-hopefully-all-the-remaining-problems-with.patch?

The hopefully fix all the remaining problems patch did say not to merge
it I thought. Please don't merge it yet - Jeff has asked for some
improvements and its not fixing the cases under investigation so it'll
confuse stuff rather than help at the moment.

Alan

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

* Re: [PATCH] libata: Early CFA adapters are not required to support mode setting
  2007-02-05 23:11   ` Alan
@ 2007-02-05 23:14     ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2007-02-05 23:14 UTC (permalink / raw)
  To: Alan; +Cc: linux-ide, jeff

On Mon, 5 Feb 2007 23:11:52 +0000
Alan <alan@lxorguk.ukuu.org.uk> wrote:

> > libata-fix-hopefully-all-the-remaining-problems-with.patch.  Should I drop
> > 
> 
> The hopefully fix all the remaining problems patch did say not to merge
> it I thought. Please don't merge it yet - Jeff has asked for some
> improvements and its not fixing the cases under investigation so it'll
> confuse stuff rather than help at the moment.

I wasn't planning on sending libata-fix-hopefully-all-the-remaining-problems-with.patch
upstream.  My concern is that its presence might invalidate (or get confused with)
testing of the earlier patches.

I'll assume it's ok...

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

* Re: [PATCH] libata: Early CFA adapters are not required to support mode setting
  2007-02-05 16:28 [PATCH] libata: Early CFA adapters are not required to support mode setting Alan
  2007-02-05 22:52 ` Andrew Morton
@ 2007-02-07  1:04 ` Jeff Garzik
  1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-02-07  1:04 UTC (permalink / raw)
  To: Alan; +Cc: akpm, linux-ide

Alan wrote:
> If we are doing a PIO setup for a CFA card and it blows up with a device
> error then assume it is an older CFA card which doesn't support this
> rather than failing the device out of existance.
> 
> Stands seperate to the quieting patch but that is obviously useful with
> this change.
> 
> Signed-off-by: Alan Cox <alan@redhat.com>

applied



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

end of thread, other threads:[~2007-02-07  1:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 16:28 [PATCH] libata: Early CFA adapters are not required to support mode setting Alan
2007-02-05 22:52 ` Andrew Morton
2007-02-05 23:11   ` Alan
2007-02-05 23:14     ` Andrew Morton
2007-02-07  1:04 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.