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, Jun 11, 2010 at 09:16:21AM +0530, 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 ).
> 
> 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  .

Userspace is notified, just do the disconnect from a program that gets
the udev event when the device is found.

It's no problem to disconnect from the usb-storage device.

thanks,

greg k-h
--
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