Re: [linux-usb-devel] CY7C67300 dual host/gadget

2006-04-13 Thread Jan Veldeman
On Thu, Apr 13, 2006 at 09:18:03PM +0200, David Brownell wrote: > On Thursday 13 April 2006 1:32 am, Jan Veldeman wrote: > > > The structure I'll be using is 1 platform driver which controls the > > hardware and shared pieces, with on top of that a host and gadget > > driver. > > And one puzzle w

[linux-usb-devel] rndis

2006-04-13 Thread Vivek Dharmadhikari
Hello list I am working on gadget driver for Analog Devices's vox160 chip. I have finished the controller driver and is using the g_ether to interface with windows usb host using rndis. I want to have understanding about how the linux rndis module works. The linux rndis module uses 4 endpoint a

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Paul Fulghum
Guennadi Liakhovetski wrote: Well, looked through the code again - I think, you are right. An updated version below. I just used your initial (slightly modified to my tastes:-)) approach - calling usb_serial_console_exit() from usb_serial_console_disconnect(). Looks good to me. Have you teste

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Guennadi Liakhovetski
On Thu, 13 Apr 2006, Paul Fulghum wrote: > On Thu, 2006-04-13 at 22:25 +0200, Guennadi Liakhovetski wrote: > > +void usb_serial_console_disconnect(struct usb_serial *serial) > > +{ > > + if (serial && serial->port && serial->port[0] && serial->port[0] == > > usbcons_info.port) { > > +

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Paul Fulghum
On Thu, 2006-04-13 at 22:25 +0200, Guennadi Liakhovetski wrote: > +void usb_serial_console_disconnect(struct usb_serial *serial) > +{ > + if (serial && serial->port && serial->port[0] && serial->port[0] == > usbcons_info.port) { > + usbcons_info.port->open_count--; > +

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Guennadi Liakhovetski
Patch #4/4. (Now let's see how much I've messed up...) Thanks Guennadi --- Guennadi Liakhovetski Prevent ENODEV on a /dev/ttyUSBx, used as a USB-serial console. Original author: Paul Fulghum <[EMAIL PROTECTED]> Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]> diff -u a/drivers/usb/seri

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Guennadi Liakhovetski
Patch #3/4. Thanks Guennadi --- Guennadi Liakhovetski Prevent NULL dereference when used as a USB-serial console. Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]> diff -u a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c --- a/drivers/usb/serial/ftdi_sio.c 30 Mar 2006

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Guennadi Liakhovetski
Patch #2/4. Thanks Guennadi --- Guennadi Liakhovetski Append Carriage-Returns after Line-Feeds, analogous to the serial driver. Original author: Paul Fulghum <[EMAIL PROTECTED]> Signed-off-by: Guennadi Liakhovetski <[EMAIL PROTECTED]> diff -u a/drivers/usb/serial/console.c b/drivers/usb/serial/

Re: [linux-usb-devel] [OOPS] console=ttyUSB0 with ftdi_sio

2006-04-13 Thread Guennadi Liakhovetski
On Wed, 12 Apr 2006, Greg KH wrote: > So, care to break the patches out into different parts so I can apply > them? Ok, below is #1. #2, 3, and 4 will follow. Tnanks Guennadi --- Guennadi Liakhovetski Prevent sending further output to a USB-serial console after the dongle is disconnected. Sign

Re: [linux-usb-devel] CY7C67300 dual host/gadget

2006-04-13 Thread David Brownell
On Thursday 13 April 2006 1:32 am, Jan Veldeman wrote: > The CY7C67300 has 2 SIE's with each 2 ports. The ports can (with some > restrictions) be configured to be either host, peripheral or OTG. That seems to be a common design in new non-PC hardware. The host side driver may then need a lot of

[linux-usb-devel] Re: g_file_storage failing with Windows but works with Linux

2006-04-13 Thread Jarkko Lavinen
On Wed, Apr 05, 2006 at 09:58:19AM -0500, ext John Otken wrote: > I found Windows to be picky about the backing file. Here are my notes > for a 4mb file that worked for me. Thanks for the suggestion. I tried the recipy but it didn't help. This was strange and I then tried an USB sniffer, which r

[linux-usb-devel] CY7C67300 dual host/gadget

2006-04-13 Thread Jan Veldeman
Hi all, I'm rewriting the CY7C67300 2.4 driver so that it uses the hcd framework and better integrates with the current infrastructure. The CY7C67300 has 2 SIE's with each 2 ports. The ports can (with some restrictions) be configured to be either host, peripheral or OTG. The structure I'll be usi