Skip to contentSkip to conversation

pata_icside driver

RFC Russell King 1 participant 1 message Apr 29, 2007 libata

lore
Share & tools
lore
#0 lore raw

Resend. Copying linux-ide as requested appears to result in being ignored. ;(

----- Forwarded message from Russell King <[email protected]> -----

Date: Sat, 21 Apr 2007 16:09:03 +0100
From: Russell King <[email protected]>
To: [email protected],
Andrew Morton <[email protected]>,
Jeff Garzik <[email protected]>, [email protected]
Subject: Re: [RFC] pata_icside driver

Quoted 11 lines · Russell King

Below is an initial attempt at converting the ICS IDE driver to fit into the PATA infrastructure.

There's a number of FIXMEs in there: due to the hardware missing resistors on the interrupt signals from the drives, a port without any drives attached results in spurious interrupts being generated.

To prevent this, we need to disable the interrupts from the port on the card if no drives are found, but unfortunately ATA doesn't call the "port_disable" method in this circumstance.

Here's an updated version. I've removed the correction of the cycle time - since we're checking whether all of active, recovery and cycle periods fit the hardware, the correction becomes unnecessary.

I still suggest that the PATA core folk consider fixing their timing calculation function in that respect though.

This driver continues to have the so far ignored issue concerning port_disable. It would be good to have some feedback on this instead of this driver continuing to be crippled by the libata core code. This really needs resolving before this driver can be merged, though I'm not sure how.

drivers/ata/Kconfig +8 -0
index 7bdbe5a..9cd8a61 100644
@@ -552,6 +552,14 @@ config PATA_PLATFORM
 
 	  If unsure, say N.
 
+config PATA_ICSIDE
+	tristate "Acorn ICS PATA support"
+	depends on ARM && ARCH_ACORN
+	help
+	  On Acorn systems, say Y here if you wish to use the ICS PATA
+	  interface card.  This is not required for ICS partition support.
+	  If you are unsure, say N to this.
+
 config PATA_IXP4XX_CF
 	tristate "IXP4XX Compact Flash support"
 	depends on ARCH_IXP4XX
drivers/ata/Makefile +1 -0
index 13d7397..cc8798b 100644
@@ -61,6 +61,7 @@ obj-$(CONFIG_PATA_TRIFLEX)	+= pata_triflex.o
 obj-$(CONFIG_PATA_IXP4XX_CF)	+= pata_ixp4xx_cf.o
 obj-$(CONFIG_PATA_SCC)		+= pata_scc.o
 obj-$(CONFIG_PATA_PLATFORM)	+= pata_platform.o
+obj-$(CONFIG_PATA_ICSIDE)	+= pata_icside.o
 # Should be last but one libata driver
 obj-$(CONFIG_ATA_GENERIC)	+= ata_generic.o
 # Should be last libata driver
drivers/ata/pata_icside.c new file +686 -0

686 lines not on this page · raw message

Signature · 15 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

----- End forwarded message -----

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of: