summaryrefslogtreecommitdiff
path: root/Documentation/power
diff options
context:
space:
mode:
authorPeter E. Berger <pberger@brimson.com>2015-07-31 01:55:06 -0500
committerJohan Hovold <johan@kernel.org>2015-07-31 11:57:31 +0200
commitc0e34831c8d9d8bf24f7bc9e12663e3daf1646ef (patch)
tree4519a8d3df84067ba8a2291b121d7361743078ef /Documentation/power
parentc3ece7e70dd8fab4fd3e4b9a74ad2df4cfa22e11 (diff)
downloadlwn-c0e34831c8d9d8bf24f7bc9e12663e3daf1646ef.tar.gz
lwn-c0e34831c8d9d8bf24f7bc9e12663e3daf1646ef.zip
USB: io_ti: Fix firmware version handling
The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the version on the EP/416. The current download code is broken in a few ways. Notably it mis-uses global variables OperationalMajorVersion and OperationalMinorVersion (reading their values before they've been properly initialized and subsequently initializing them multiple times without synchronization). This patch drops the global variables and replaces the redundant calls to request_firmware()/release_firmware() in download_fw() with a single call pair in edge_startup(); the firmware image pointer is then passed to download_fw() and build_i2c_fw_hdr(). Signed-off-by: Peter E. Berger <pberger@brimson.com> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'Documentation/power')
0 files changed, 0 insertions, 0 deletions