Re: [PARPORT] Failure to negotiate an ecp mode

From: John O'Connor (joconnor@orga.com)
Date: Wed Nov 15 2000 - 05:52:15 EST

  • Next message: Mark: "Re: [PARPORT] SSQ2030 scanner and onscsi module"

    Tim Waugh wrote:

    > Where in the negotiation does it fail?

    In Event 2 in parport_negotiate. See below.

    John

    int parport_negotiate (struct parport *port, int mode)
    {

    ...................
                                           
            /* Event 2: PError, Select, nFault go high, nAck goes low */
            if (parport_wait_peripheral (port,
                                         PARPORT_STATUS_ERROR
                                         | PARPORT_STATUS_SELECT
                                         | PARPORT_STATUS_PAPEROUT
                                         | PARPORT_STATUS_ACK,
                                         PARPORT_STATUS_ERROR
                                         | PARPORT_STATUS_SELECT
                                         | PARPORT_STATUS_PAPEROUT)) {

    // The code always times out in here. The io read of the control port always returns 0x7f.

                    /* Timeout */
                    parport_frob_control (port,
                                          PARPORT_CONTROL_SELECT
                                          | PARPORT_CONTROL_AUTOFD,
                                          PARPORT_CONTROL_SELECT);
                    DPRINTK (KERN_DEBUG
                             "%s: Peripheral not IEEE1284 compliant (0x%02X)\n",
                             port->name, parport_read_status (port));
                    port->ieee1284.phase = IEEE1284_PH_FWD_IDLE;
                    return -1; /* Not IEEE1284 compliant */
            }

    -- 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 2b29 : Wed Nov 15 2000 - 05:53:45 EST