From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: Plug and play for a tty line disciple networking device Date: Wed, 20 Mar 2013 16:26:45 -0700 Message-ID: <20130320232645.GC19779@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Alan Ott List-Id: linux-serial@vger.kernel.org On Tue, Mar 19, 2013 at 11:30:05AM -0400, jonsmirl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > How can you achieve plug and play for a ft2232 based USB serial device > implementing 802.15.4 networking? > > The device has a 802.15.4 SOC with a UART attached to a ft2232. With > firmware loaded the only thing it can do is talk the 802.15.4 tty line > discipline, it is not a general purpose serial port. > > Right now the device works by plugging it in and it appears as a > generic USB serial device like ttyUSB0. You then run a user space app > which sets the line discipline, holds the port open and attaches it to > the 6lowpan implementation in the networking code. But doing that is > inconvenient and users needs to be trained to do it. Much simpler if > we could just plug the device in and it worked. > > We can add a EEPROM to the ft2232 to give it a unique USB ID. Is it > possible to make a kernel driver that see this ID, sets the line > discipline and wires the serial port directly into the networking > code? Yes, you can do that. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html