Re: selection of usb configuration on the fly on usb host

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

 



On Fri, 11 Jun 2010, Amit Nagal wrote:

> HI Alen ,
> 
> Thanx for the  reply . it will certainly help my cause .
> 
> But my problem is , before a userspace program send the command
> 
> echo N >/sys/bus/usb/devices/.../bConfigurationValue to the device ,
> 
> usb host will already  select default mass storage configuration on
> device plugin
> 
> (device exposes default 1st configuration as mass storage  and we have
> no control over device firmware ).

Yes.  Is this a problem?  Won't the device work okay if the host starts 
out by selecting the mass-storage config and then switches to the other 
config later?

> this is not desired . what i want is , usb host on detecting this
> multi configuration device ,
> 
> instead of  selecting default configuration , invoke some userspace binary
> 
> where depending upon  "echo N
> >/sys/bus/usb/devices/.../bConfigurationValue to the device "
> 
> desired configuration can be selected .
> 
> so how i can handle this signalling from usb host to userspace  .
> thanx for reply once again

Right now there is no way to prevent the core from installing the 
mass-storage config automatically.  If necessary we could add a quirk 
to prevent this.

But are you certain that you really need it?

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