Re: [PATCH] gadget/file_storage.c : Add a serial number parameter.

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

 



> > What if 2 devices are used, as they should have unique
> serial ?
> 
> That's not possible.  The design of the gadget API
> doesn't permit more 
> than one gadget to be defined.

... per system.  If you take two boards and run
identical kernels, they should have unique serial
numbers ... they'd be two distinct gadgets.

The way to manage unique IDs is to have some kind
of ID generation scheme, and store them on each
board.  (Maybe in EEPROM ... or, as in the original
composite gadget code, module parameters.


 
> > Should it be randomized ?
> 
> No.

Randomization might be a workable solution in
some cases, but in general it's at best an
incomplete solution to managing unique IDs.

- Dave

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