Re: [PARPORT] PPA Zip: unsupported message byte 187 received


Ian Cameron (I.A.Cameron@open.ac.uk)
Mon, 20 Sep 1999 14:48:14 +0100


Hi,

I've just changed the ppa.c code back to:

        if (ppa_in(host_no, &l, 1)) { /* read status byte */
            /* Check for optional message byte */
            if (ppa_wait(host_no) == (unsigned char) 0xf0)
                printk("ppa.c: line 907\n");
                ppa_in(host_no, &h, 1);
                printk("ppa.c: line 910\n");

            cmd->result = (DID_OK << 16) + (h << 8) + (l & STATUS_MASK);

/* cmd->result = (DID_OK << 16) + (l & STATUS_MASK); */

And commented out the following code further up:

        /* Mode detection works up the chain of speed
         * This avoids a nasty if-then-else-if-... tree
         */
        ppa_hosts[i].mode = PPA_NIBBLE;

/* if (modes & PARPORT_MODE_PCPS2)
            ppa_hosts[i].mode = PPA_PS2;

        if (modes & PARPORT_MODE_PCECPPS2) {
            w_ecr(ppb, 0x20);
            ppa_hosts[i].mode = PPA_PS2;
        }
        if (modes & PARPORT_MODE_PCECPEPP)
            w_ecr(ppb, 0x80);
*/

I now run in SPP mode with the result:

ppa: Version 2.03 (for Linux 2.2.x)
ppa: Found device at ID 6, Attempting to use EPP 16 bit
ppa: Found device at ID 6, Attempting to use SPP
ppa: Communication established with ID 6 using SPP
scsi0 : Iomega VPI0 (ppa) interface
scsi : 1 host.
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
  Vendor: IOMEGA Model: ZIP 100 Rev: D.13
  Type: Direct-Access ANSI SCSI revision: 02
Detected scsi removable disk sda at scsi0, channel 0, id 6, lun 0
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
SCSI device sda: hdwr sector= 512 bytes. Sectors= 196608 [96 MB] [0.1 GB]
ppa.c: line 907
ppa.c: line 910
sda: Write Protect is off
 sda:ppa.c: line 907
ppa.c: line 910
 sda1
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
ppa.c: line 907
ppa.c: line 910
EXT2-fs warning: checktime reached, running e2fsck is recommended

And it works. I can run with this for the time being, but presumably I can
get more from the port?

-- 
Cheers, Ian.

-- To unsubscribe, send mail to: linux-parport-request@torque.net -- -- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Mon 20 Sep 1999 - 09:49:03 EDT