LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Remove apparently dead CONFIG_NO_ATA_LEGACY code.
@ 2007-05-03 17:53 Robert P. J. Day
  2007-05-03 18:16 ` Randy Dunlap
  2007-05-03 21:17 ` Alan Cox
  0 siblings, 2 replies; 3+ messages in thread
From: Robert P. J. Day @ 2007-05-03 17:53 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton


Remove the single snippet of code conditional on the non-existent
CONFIG_NO_ATA_LEGACY Kconfig variable.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

  i would have mailed a note about this to the ATA maintainer but it
wasn't clear who that was.  this is the only dead CONFIG_ variable
under drivers/ata so i figured i'd just submit the patch.


diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index d211db6..5a4821a 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -985,16 +985,6 @@ int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_info,
 		mask = (1 << 2) | (1 << 0);
 		if ((tmp8 & mask) != mask)
 			legacy_mode = (1 << 3);
-#if defined(CONFIG_NO_ATA_LEGACY)
-		/* Some platforms with PCI limits cannot address compat
-		   port space. In that case we punt if their firmware has
-		   left a device in compatibility mode */
-		if (legacy_mode) {
-			printk(KERN_ERR "ata: Compatibility mode ATA is not supported on this platform, skipping.\n");
-			rc = -EOPNOTSUPP;
-			goto err_out;
-		}
-#endif
 	}

 	/* alloc and init host */
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

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

* Re: Remove apparently dead CONFIG_NO_ATA_LEGACY code.
  2007-05-03 17:53 Remove apparently dead CONFIG_NO_ATA_LEGACY code Robert P. J. Day
@ 2007-05-03 18:16 ` Randy Dunlap
  2007-05-03 21:17 ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2007-05-03 18:16 UTC (permalink / raw)
  To: Robert P. J. Day, jgarzik; +Cc: Linux Kernel Mailing List, Andrew Morton

On Thu, 3 May 2007 13:53:06 -0400 (EDT) Robert P. J. Day wrote:

> 
> Remove the single snippet of code conditional on the non-existent
> CONFIG_NO_ATA_LEGACY Kconfig variable.
> 
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> 
> ---
> 
>   i would have mailed a note about this to the ATA maintainer but it
> wasn't clear who that was.  this is the only dead CONFIG_ variable
> under drivers/ata so i figured i'd just submit the patch.

from that source file:

 *  Maintained by:  Jeff Garzik <jgarzik@pobox.com>
 *    		    Please ALWAYS copy linux-ide@vger.kernel.org
 *		    on emails.


> diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
> index d211db6..5a4821a 100644
> --- a/drivers/ata/libata-sff.c
> +++ b/drivers/ata/libata-sff.c
> @@ -985,16 +985,6 @@ int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_info,
>  		mask = (1 << 2) | (1 << 0);
>  		if ((tmp8 & mask) != mask)
>  			legacy_mode = (1 << 3);
> -#if defined(CONFIG_NO_ATA_LEGACY)
> -		/* Some platforms with PCI limits cannot address compat
> -		   port space. In that case we punt if their firmware has
> -		   left a device in compatibility mode */
> -		if (legacy_mode) {
> -			printk(KERN_ERR "ata: Compatibility mode ATA is not supported on this platform, skipping.\n");
> -			rc = -EOPNOTSUPP;
> -			goto err_out;
> -		}
> -#endif
>  	}
> 
>  	/* alloc and init host */
> -- 


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: Remove apparently dead CONFIG_NO_ATA_LEGACY code.
  2007-05-03 17:53 Remove apparently dead CONFIG_NO_ATA_LEGACY code Robert P. J. Day
  2007-05-03 18:16 ` Randy Dunlap
@ 2007-05-03 21:17 ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2007-05-03 21:17 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Andrew Morton

On Thu, 3 May 2007 13:53:06 -0400 (EDT)
"Robert P. J. Day" <rpjday@mindspring.com> wrote:

> 
> Remove the single snippet of code conditional on the non-existent
> CONFIG_NO_ATA_LEGACY Kconfig variable.
> 
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

NAK

This option is not dead and is relevant (although the platform using it
may not have the relevant bits merged yet).


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

end of thread, other threads:[~2007-05-03 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-03 17:53 Remove apparently dead CONFIG_NO_ATA_LEGACY code Robert P. J. Day
2007-05-03 18:16 ` Randy Dunlap
2007-05-03 21:17 ` Alan Cox

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