[cpia] Unified patch for recent kernels

Claudio Matsuoka claudio@helllabs.org
Wed, 26 Jan 2000 14:31:11 -0200 (EDT)


On Tue, 25 Jan 2000 sbertin@mindspring.com wrote:

> After this I also get
> Jan 25 20:18:01 adsl-61-0-206 kernel: cpia_pp.c(555746):cpia_pp_open
> (1367):Found camera[0] 
> Jan 25 20:18:01 adsl-61-0-206 kernel: parport0: ECP direction: reverse 

No such messages here, in 2.3.39 or 2.3.40.


> If you don't get that or any error messages, then something is going
> wrong in cpia_pp_attach.  It looks like the only cause of failure would
> be if port->probe_info had the wrong information.

I presume this is the relevant piece of code?

   1568     case PPCPIA_PARPORT_AUTO:
   1569         if (port->probe_info[0].class != PARPORT_CLASS_MEDIA ||
   1570             port->probe_info[0].cmdset == NULL ||
   1571             strncmp(port->probe_info[0].cmdset, "CPIA_1", 6) != 0)
   1572                 return;


> What does cat /proc/sys/dev/parport/parport0/autoprobe tell you?

Nothing. Umm. I'm installing the camera in a Windows box to see if it
is working properly (which I suppose it is). If the camera is OK, perhaps
something bad happened to my parallel port. Ouch.

Best regards,
claudio