Re: composition switch design

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

 



On Wed, 20 Jan 2010, sai pavan wrote:

> We want our device to work with windows xp. As you might know windows
> xp always choose 1st configuration. And there is no way user can
> select another configuration in windows.
> 
> Though Linux supports multiple configurations and user can select any
> configuration via sysfs, it is always good to have an option in the
> device (say phone) UI.
> 
> I have a crazy thought (and absolutely no idea how this can be done)
> like composite driver registering all possible configurations (with
> different functions) and modify cdev->config list to expost first
> configuration based on user input.

Or based on a module parameter.  That would be easy to modify when the 
driver is loaded (or at bootup if the driver is compiled in) and at any 
time later.

>  This way we can make our device
> with windows and also have a facility to select a different
> configuration from host (running Linux).

This is more or less how g_zero works.

Alan Stern

--
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