Re: [U-Boot] [PATCH 1/2] warp7: usb: Introduce a get method for serial number

2018-03-13 Thread Bryan O'Donoghue
On 13/03/18 13:25, Fabio Estevam wrote: +static int warp7_get_serialid(u64 *id) Maybe you could turn place this function in a common location as it may be useful for others. Ah, looking for a place to stick this as shared code I've found something which already does what this patch does

Re: [U-Boot] [PATCH 1/2] warp7: usb: Introduce a get method for serial number

2018-03-13 Thread Fabio Estevam
Hi Bryan, On Tue, Mar 13, 2018 at 9:00 AM, Bryan O'Donoghue wrote: > +static int warp7_get_serialid(u64 *id) Maybe you could turn place this function in a common location as it may be useful for others. > +{ > + u32 val; > + int ret; > + > + if

[U-Boot] [PATCH 1/2] warp7: usb: Introduce a get method for serial number

2018-03-13 Thread Bryan O'Donoghue
We want to be able to set the USB device descriptor number iSerial number or indeed a disk-label unique identifier based on a chip-specific piece of data for the purposes of differentiating between WaRP7 boards via lsusb when connected to a host machine. In order to do this we want to have a