[Linux-parport] [PATCH] parport_open to open IEEE1284.3 device

Marko Kohtala marko.kohtala at luukku.com
Tue Jan 11 15:58:54 EST 2005


Tim Waugh wrote:
> On Mon, Jan 10, 2005 at 08:19:39PM +0200, Marko Kohtala wrote:
>>This patch is what I worry about. It seems to me that it has been always 
>>impossible to open daisy chain devices. Hasn't this been used or am I 
>>missing something?
> 
> I don't think it's been used that I know of.

Hmm. Ok. Seems that no driver is made to use these services so the code is in 
fact dead. Even the IEEE1284.3 DC device drivers just send the CPP commands 
themselves.

I have none of the devices for the drivers so only thing I could do for the 
code is to remove it.

Btw. I looked at the ppscsi patch and a number of other parport device 
drivers. They seem to go directly to I/O ports and program the PC parallel 
port. Should propably make them at least depend on PARPORT_PC in Kconfig.

Maybe something like this?

===== drivers/scsi/Kconfig 1.93 vs edited =====
--- 1.93/drivers/scsi/Kconfig	2004-12-27 20:28:37 +02:00
+++ edited/drivers/scsi/Kconfig	2005-01-11 21:25:22 +02:00
@@ -829,7 +829,7 @@ config SCSI_INIA100

  config SCSI_PPA
  	tristate "IOMEGA parallel port (ppa - older drives)"
-	depends on SCSI && PARPORT
+	depends on SCSI && PARPORT_PC
  	---help---
  	  This driver supports older versions of IOMEGA's parallel port ZIP
  	  drive (a 100 MB removable media device).
@@ -856,7 +856,7 @@ config SCSI_PPA

  config SCSI_IMM
  	tristate "IOMEGA parallel port (imm - newer drives)"
-	depends on SCSI && PARPORT
+	depends on SCSI && PARPORT_PC
  	---help---
  	  This driver supports newer versions of IOMEGA's parallel port ZIP
  	  drive (a 100 MB removable media device).
@@ -883,7 +883,7 @@ config SCSI_IMM

  config SCSI_IZIP_EPP16
  	bool "ppa/imm option - Use slow (but safe) EPP-16"
-	depends on PARPORT && (SCSI_PPA || SCSI_IMM)
+	depends on SCSI_PPA || SCSI_IMM
  	---help---
  	  EPP (Enhanced Parallel Port) is a standard for parallel ports which
  	  allows them to act as expansion buses that can handle up to 64
@@ -898,7 +898,7 @@ config SCSI_IZIP_EPP16

  config SCSI_IZIP_SLOW_CTR
  	bool "ppa/imm option - Assume slow parport control register"
-	depends on PARPORT && (SCSI_PPA || SCSI_IMM)
+	depends on SCSI_PPA || SCSI_IMM
  	help
  	  Some parallel ports are known to have excessive delays between
  	  changing the parallel port control register and good data being
===== drivers/block/Kconfig 1.35 vs edited =====
--- 1.35/drivers/block/Kconfig	2005-01-08 07:43:54 +02:00
+++ edited/drivers/block/Kconfig	2005-01-11 21:40:12 +02:00
@@ -117,7 +117,7 @@ config BLK_DEV_XD

  config PARIDE
  	tristate "Parallel port IDE device support"
-	depends on PARPORT
+	depends on PARPORT_PC
  	---help---
  	  There are many external CD-ROM and disk devices that connect through
  	  your computer's parallel port. Most of them are actually IDE devices
===== drivers/block/paride/Kconfig 1.4 vs edited =====
--- 1.4/drivers/block/paride/Kconfig	2004-04-12 20:53:57 +03:00
+++ edited/drivers/block/paride/Kconfig	2005-01-11 22:13:14 +02:00
@@ -4,11 +4,12 @@
  # PARIDE doesn't need PARPORT, but if PARPORT is configured as a module,
  # PARIDE must also be a module.  The bogus CONFIG_PARIDE_PARPORT option
  # controls the choices given to the user ...
+# PARIDE only supports PC style parports. Tough for USB or other parports...
  config PARIDE_PARPORT
  	tristate
  	depends on PARIDE!=n
-	default m if PARPORT=m
-	default y if PARPORT!=m
+	default m if PARPORT_PC=m
+	default y if PARPORT_PC!=m

  comment "Parallel IDE high-level drivers"
  	depends on PARIDE


> Tim.
> */



More information about the Linux-parport mailing list