CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-08 Thread Miner, Blake
To whom it may concern: I am having trouble with the Silicon Labs CP2105 (usb serial driver cp210x) enumerating both USB interfaces. When the CP2105-EK evaluation board is connected to the PC, Linux only creates a `/dev/ttyUSB0` device, but no `/dev/ttyUSB1` device is created. Upon unplugging the

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-09 Thread Miner, Blake
Sounds good. I was reading here (https://lwn.net/Articles/434833/) about the dev_dbg() function. Any ideas what I should do to enable this type of debugging on Debian Linux? I should mention that I've never built the kernel from source before. :) Thanks, -- To unsubscribe from this list: send

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-15 Thread Miner, Blake
After debugging further, I figured out what was causing the problem. In the driver for the cp210x, there is a line of code in the `.attach` function that calls `usb_reset_device(serial->dev);`. See the source code here: https://github.com/torvalds/linux/blob/master/drivers/usb/serial/cp210x.c#L8

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-16 Thread Miner, Blake
terfaces are properly detected the first time. :) Any thoughts? Thanks, Blake On Fri, May 16, 2014 at 2:47 AM, Jidong Xiao wrote: > On Thu, May 15, 2014 at 6:53 PM, Miner, Blake wrote: >> After debugging further, I figured out what was causing the problem. >> >> In the dr

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-16 Thread Miner, Blake
Fri, 16 May 2014, Miner, Blake wrote: > >> > I am not sure about this, but I wonder can we do the reset in >> > cp210x_open() instead of in cp210x_startup()? >> >> Possibly, but I'd rather perform the reset just once, right when the >> device is detected

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-16 Thread Miner, Blake
ld be the best > patch, although we have not gone through any regression testing yet to prove > that is the case and I don't know the implications within the Linux kernel > itself - but from a pure device standpoint it's not necessary. > > Kind Regards - > Preston > &

Re: CP210x Driver - Issue Enumerating Multiple Interfaces

2014-05-16 Thread Miner, Blake
wrote: > On Fri, 16 May 2014, Miner, Blake wrote: > >> Thanks to everyone who helped me with my first kernel patch. Please >> see the patch in the link below. If any revisions are necessary, >> please let me know. Thanks! >> >> http://sweetamandas.com/cp210x.patc