Linux driver for multifunction USB device

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hi,
I am writing a driver for a composite device with two interfaces.One
interface is a modem interface and the other is a diagnostic interface
to be used by diagnostic applications for the modem.My queries are as
follows

1.Do i need to write two separate driver modules for the two
interfaces or a single driver would do the work ?

2.How does the user applications talk to the modem driver module?

3.Do i need to write a driver module which enumerates the two
interfaces??

Any help in this regard is highly appreciated.

Thanks in advace..

Sonu Abraham

Re: Linux driver for multifunction USB device
AFAIK, a single module can register multiple device files in it's init
code.

-Michael

Re: Linux driver for multifunction USB device
Quoted text here. Click to load it

Usually through /dev/ or /proc.  The usb driver skeleton uses /dev/.

Quoted text here. Click to load it

You don't need to enumerate all interfaces, only the one that you choose to.

Site Timeline