Re: [PATCH v9 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-31 Thread Johan Hovold
On Fri, Jul 31, 2015 at 01:55:07AM -0500, Peter E. Berger wrote: > From: "Peter E. Berger" > +static int check_fw_sanity(struct edgeport_serial *serial, > + const struct firmware *fw) > +{ > + u16 length_total; > + u8 checksum = 0; > + int pos; > + struct device *dev

[PATCH v9 3/4] USB: io_ti: Add firmware image sanity checks

2015-07-30 Thread Peter E. Berger
From: "Peter E. Berger" Do what we can to verify that the driver's firmware image is valid (before attempting to download it to the Edgeport) by adding a new function, check_fw_sanity(), and a call to it in in download_fw(). Note: It looks like some Edgeports (models like the EP/416 with on-boar