USB: ezusb: add functions for firmware download
authorRene Buergel <rene.buergel@sohard.de>
Tue, 18 Sep 2012 07:02:01 +0000 (09:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Sep 2012 16:26:30 +0000 (17:26 +0100)
commit8d733e26c076f47e7774c0e5baa74c9b1c01199a
tree9c7d8885361c63325f0fb7e1ca3f0da00ed89fce
parentcc183e2a5ebfdddc8d3498149cae6b4c40551a68
USB: ezusb: add functions for firmware download

This patch adds new functions to upload firmware to the controller. The
drivers currently using ezusb are adapted to use these new functions.

This also fixes a bug occuring during firmware loading in the
whiteheat-driver:
The driver iterates over an ihex-formatted firmware using ++ on a "const
struct ihex_binrec*" which leads to faulty results, because ihex data is
read as length. The function "ihex_next_binrec(record)" has so be used
to work correctly

Signed-off-by: René Bürgel <rene.buergel@sohard.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ezusb.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/whiteheat.c