Ondrej Zary e62aa046e1 paride: pf driver fixes
The pf driver for parallel port floppy drives seems to be broken.  At least
with Imation SuperDisk with EPAT chip, the driver calls pi_connect() and
pi_disconnect after each transferred sector.  At least with EPAT, this
operation is very expensive - causes drive recalibration.  Thus, transferring
even a single byte (dd if=/dev/pf0 of=/dev/null bs=1 count=1) takes 20
seconds, making the driver useless.

The pf_next_buf() function seems to be broken as it returns 1 always (except
when pf_run is non-zero), causing the loop in do_pf_read_drq (and
do_pf_write_drq) to be executed only once.

The following patch fixes this problem.  It also fixes swapped descriptions in
pf_lock() function and removes DBMSG macro, which seems useless.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-14 18:45:39 -08:00
..
2007-10-17 08:42:52 -07:00
2007-11-14 18:45:39 -08:00
2007-08-22 19:52:46 -07:00
2007-11-02 08:47:06 +01:00
2007-11-14 18:45:39 -08:00
2007-11-14 18:45:37 -08:00
2007-07-21 18:37:12 -07:00
2007-10-29 17:27:50 -04:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-10-20 01:34:40 +02:00
2007-11-05 15:12:31 -08:00
2007-11-05 21:54:41 +00:00
2007-11-14 18:45:38 -08:00
2007-11-05 15:12:31 -08:00
2007-10-20 01:34:40 +02:00
2007-10-25 17:43:46 -04:00
2007-11-10 11:59:49 +01:00
2007-10-23 09:49:31 +02:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-11-14 18:45:36 -08:00
2007-10-20 15:04:06 -07:00
2007-11-14 18:45:39 -08:00
2007-10-17 08:42:57 -07:00
2007-07-18 15:57:16 -07:00
2007-11-02 08:47:06 +01:00
2007-11-14 18:45:36 -08:00
2007-10-23 15:49:54 +10:00