[PATCH] pata_pcmcia: Cable detect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one is a bit odd. Most PCMCIA adapters don't really have a "cable"
but have the controller embedded in the CF adapter or similar. Some real
IDE adapters do exist although they are rare.

As PCMCIA is ISA timing it can only support PIO0 so reporting 40 wire
seems closest to the truth and I don't see the need for a
'ATA_CBL_HARDWIRED' type although we could add one if Jeff wanted.

(As a PS Jeff - if you don't want to merge the code for spotting missing
slave detect for 2.6.21 it would be best to remove the SLAVE flag from
that driver for 2.6.21 and just probe master only - safer and will break
only ultra-obscure setups)

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc2-mm2/drivers/ata/pata_pcmcia.c linux-2.6.21-rc2-mm2/drivers/ata/pata_pcmcia.c
--- linux.vanilla-2.6.21-rc2-mm2/drivers/ata/pata_pcmcia.c	2007-03-06 23:09:46.000000000 +0000
+++ linux-2.6.21-rc2-mm2/drivers/ata/pata_pcmcia.c	2007-03-06 17:56:21.000000000 +0000
@@ -42,7 +42,7 @@
 
 
 #define DRV_NAME "pata_pcmcia"
-#define DRV_VERSION "0.3.0"
+#define DRV_VERSION "0.3.1"
 
 /*
  *	Private data structure to glue stuff together
@@ -118,6 +118,7 @@
 	.thaw		= ata_bmdma_thaw,
 	.error_handler	= ata_bmdma_error_handler,
 	.post_internal_cmd = ata_bmdma_post_internal_cmd,
+	.cable_detect	= ata_cable_40wire,
 
 	.qc_prep 	= ata_qc_prep,
 	.qc_issue	= ata_qc_issue_prot,
-
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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux