On 10/07/2009 09:58 PM, Thomas Chou wrote:
This patch adds a new PATA driver to support the Altera SOPC Builder CompactFlash component as a PATA device with support for insertion and removal of CF cards. It uses the platform driver model. For each probed platform device, the driver spawns a kthread to handle insertion and removal of CF cards by creating and removing the underlying ATA host interface. The Altera CompactFlash component includes a register bit to indicate whether a CF card is detected and an interrupt triggered when this bit changes. The driver has a handler for this interrupt which flags that something has changed and wakes up the kthread to deal with it. The platform device uses 2 IORESOURCE_MEM resources and 2 IORESOURCE_IRQ resources. The first memory resource is for the CompactFlash component's IDE registers and the second is for the component's CF status and control registers. The first IRQ resource is for the IDE and the second is for the CF detection interrupt. Signed-off-by: Ian Abbott<abbotti@xxxxxxxxx> Signed-off-by: Thomas Chou<thomas@xxxxxxxxxxxxx> --- drivers/ata/Kconfig | 11 + drivers/ata/Makefile | 1 + drivers/ata/pata_altera_cf.c | 582 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 594 insertions(+), 0 deletions(-) create mode 100644 drivers/ata/pata_altera_cf.c
Ping... still waiting on v3, updated with Alan's feedback. -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html