linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-ide@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>,
	jordan.crouse@amd.com
Subject: Re: [PATCH] pata_cs5536: ATA driver for Geode companion chip
Date: Mon, 15 Oct 2007 15:41:22 -0400	[thread overview]
Message-ID: <4713C262.7010401@garzik.org> (raw)
In-Reply-To: <yq1y7eahzis.fsf@sermon.lab.mkp.net>

Martin K. Petersen wrote:
> This is a driver for the ATA controller on the Geode CS5536 companion
> chip.  The PCI device ID for this device was previously claimed by
> pata_amd.c but the PIO timings were not correct.  This driver also
> works around a bug in some BIOSes that handle unaligned access to the
> PCI config registers poorly.  Finally, the driver allows fallback to
> using MSR registers for configuration on BIOSes that are truly
> broken.
> 
> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
> 
> ---
> 
> diff -r 79f0ea1e0e70 drivers/ata/Kconfig
> --- a/drivers/ata/Kconfig	Tue Oct 09 21:00:40 2007 +0000
> +++ b/drivers/ata/Kconfig	Thu Oct 11 03:26:40 2007 -0400
> @@ -254,6 +254,15 @@ config PATA_CS5535
>  
>  	  If unsure, say N.
>  
> +config PATA_CS5536
> +	tristate "CS5536 PATA support (Experimental)"
> +	depends on PCI && X86 && !X86_64 && EXPERIMENTAL
> +	help
> +	  This option enables support for the AMD CS5536
> +	  companion chip used with the Geode LX processor family.
> +
> +	  If unsure, say N.
> +
>  config PATA_CYPRESS
>  	tristate "Cypress CY82C693 PATA support (Very Experimental)"
>  	depends on PCI && EXPERIMENTAL
> diff -r 79f0ea1e0e70 drivers/ata/Makefile
> --- a/drivers/ata/Makefile	Tue Oct 09 21:00:40 2007 +0000
> +++ b/drivers/ata/Makefile	Thu Oct 11 03:26:40 2007 -0400
> @@ -27,6 +27,7 @@ obj-$(CONFIG_PATA_CS5520)	+= pata_cs5520
>  obj-$(CONFIG_PATA_CS5520)	+= pata_cs5520.o
>  obj-$(CONFIG_PATA_CS5530)	+= pata_cs5530.o
>  obj-$(CONFIG_PATA_CS5535)	+= pata_cs5535.o
> +obj-$(CONFIG_PATA_CS5536)	+= pata_cs5536.o
>  obj-$(CONFIG_PATA_CYPRESS)	+= pata_cypress.o
>  obj-$(CONFIG_PATA_EFAR)		+= pata_efar.o
>  obj-$(CONFIG_PATA_HPT366)	+= pata_hpt366.o
> diff -r 79f0ea1e0e70 drivers/ata/pata_amd.c
> --- a/drivers/ata/pata_amd.c	Tue Oct 09 21:00:40 2007 +0000
> +++ b/drivers/ata/pata_amd.c	Thu Oct 11 03:26:40 2007 -0400
> @@ -693,7 +693,10 @@ static const struct pci_device_id amd[] 
>  	{ PCI_VDEVICE(NVIDIA,	PCI_DEVICE_ID_NVIDIA_NFORCE_MCP67_IDE),	8 },
>  	{ PCI_VDEVICE(NVIDIA,	PCI_DEVICE_ID_NVIDIA_NFORCE_MCP73_IDE),	8 },
>  	{ PCI_VDEVICE(NVIDIA,	PCI_DEVICE_ID_NVIDIA_NFORCE_MCP77_IDE),	8 },
> +/* Temporary */
> +#if !defined(CONFIG_PATA_CS5536) && !defined(CONFIG_PATA_CS5536_MODULE)
>  	{ PCI_VDEVICE(AMD,	PCI_DEVICE_ID_AMD_CS5536_IDE),		9 },
> +#endif
>  
>  	{ },
>  };

applied, after removing the pata_amd patch

I don't typically apply things marked temporary :) but moreover, this is 
a bit unusual to do in a driver.  Any opinions on simply removing the 
PCI ID?  what's the installed base like today?  do we need to keep the 
PCI ID in both drivers?



      parent reply	other threads:[~2007-10-15 19:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11  7:38 [PATCH] pata_cs5536: ATA driver for Geode companion chip Martin K. Petersen
2007-10-11 10:20 ` Alan Cox
2007-10-14  4:49   ` Andrew Paprocki
2007-10-14 19:42     ` Andrew Paprocki
2007-10-14 19:51       ` Alan Cox
2007-10-14 20:57         ` Andrew Paprocki
2007-10-15 19:41 ` Jeff Garzik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4713C262.7010401@garzik.org \
    --to=jeff@garzik.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jordan.crouse@amd.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).