Re: problems with cp210x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 18, 2016 at 10:25:29AM +0100, walter harms wrote:
> 
> 
> Am 17.03.2016 18:04, schrieb Greg KH:
> > On Thu, Mar 17, 2016 at 05:41:13PM +0100, walter harms wrote:
> >>
> >>
> >> Am 29.02.2016 17:10, schrieb Greg KH:
> >>> On Mon, Feb 29, 2016 at 02:47:45PM +0100, walter harms wrote:
> >>>> Hello List,
> >>>>
> >>>> is someone aware of a problem with DTR in that driver ?
> >>>>
> >>>> I use: Linux version 3.4.53-MMI-SW.401_0.1-43
> >>>
> >>> That's a very old and obsolete kernel version.  Please ask for support
> >>> from the vendor that is forcing you to live with that kernel version,
> >>> that is what you are paying for.
> >>>
> >>> We can help you here if you try the latest kernel release, can you try
> >>> 4.4?
> >>>
> >>
> >> Hi,
> >> i would like to give same feedback.
> >>
> >> Using a newer version of linux caused unexpected problems unrelated to the interface
> >> but we found a possible trouble spot.
> > 
> > What problems did you have?
> > 
> >> the chip cp2105 has a One Time Programmable register to define DTR etc.
> >> we were not aware of that.
> >>
> >> I would suggest to add an ioctl to get the mode. (I did not see one).
> >> so someone has a change to find the problem next time.
> > 
> > The mode of what?  The tty line?  Something else?
> > 
> > Please be more specific.
> > 
> 
> 
> mea culpa, as usual i forgot that not everyone is working on the same problem ....
> I will write that in the slight hope that the next one will not search for not
> existing hardware bugs ...
> 
> Desc: the cp2105 is a USB->serial converter with GPIO option (!)

Yes, this keeps coming up on the list, see the archives for some patches
that add gpio support to the driver through the gpio layer in the
kernel.  I think they are still being worked on and not merged yet.

> symptom: Devices attached to the serial port that require all Signals do not work
>          but hardware (wiring etc) is ok.
>          Tests showed that toggling DTR signal did not work for no obvious reason.
> 	 (RTS did work).
> 
> reason: (tested on cp2105 prototype board)
> 	the chip cp2105 has a One Time Programmable register to define modem/gpio mode.
>         The configuration is normally done by the producer of the board.
>         If that register is not set (in our case) the DTR is not working.
> 
> 	Note the documentation says: "Up to 1024 Bytes of EEPROM or OTP ROM" but most times
>         the documentation refers to "EEPROM".
> 
> suggestion:
> 	there should be an ioctl() related to the configuration in the eeprom.

If there's an EEPROM, then we should use the kernel's eeprom layer to
properly access it.  I don't know if anyone has started doing that,
again, check the archives.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux