Re: ptp-gadget: now also working with MS Windows hosts

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

 



On Tue, 5 May 2009, Guennadi Liakhovetski wrote:

> David, another question for you: Greg suggested to use the bcdDevice field 
> in the device descriptor to specify driver's version. However, in the 
> gadgetfs example that I based my code on it is used to specify the 
> underlying hardware:
> 
> net2280:	0x100
> pxa2xx:		0x101
> goku:		0x104
> ...
> 
> What do you think, what makes more sense: preserving this or using 
> bcdDevice for driver version and appending the hardware string to 
> iManufacturer like in-kernel gadget drivers do? I think the latter would 
> make more sense, agree?

Take at look at file-storage.c.  It uses the upper byte of bcdDevice 
for the driver revision and the lower byte for the controller hardware 
identification.

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