libsigrok/hardware
Alexandru Gagniuc 443a14d81f fx2lafw: Print device failed to renumerate error
commit 378abfeac6 tried to solve a bug where
the fx2lafw driver would print "Device came back" even if a timeout had occured.

It solved that issue, but inadvertently introduced a new bug:
"Device came back" would be printed even if no firmware upload was performed.
This is counterintuitive, as the device is only reset when a firmware upload is
performed.

There are three cases:
i)   Firmware upload was successful
ii)  Firmware upload failed
iii) Firmware upload was NOT needed

Each case warrants a separate message from the driver. Print the
following messages depending on the outcome:

i)   "Device came back"
ii)  "Device failed to renumerate"
iii) "Firmware upload was not needed."

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-18 00:48:56 +01:00
..
agilent-dmm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
alsa Add a struct sr_context * parameter to hw_init() 2012-12-03 12:07:40 +01:00
asix-sigma hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
chronovu-la8 hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
colead-slm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
common serial_stream_detect(): Drop unneeded sr_spew(). 2012-12-17 14:21:12 +01:00
demo hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
fluke-dmm hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
fx2lafw fx2lafw: Print device failed to renumerate error 2012-12-18 00:48:56 +01:00
hantek-dso hardware: A few further USB error message fixups 2012-12-05 01:34:15 +01:00
lascar-el-usb lascar-el-usb: fix sample limit parameter 2012-12-16 23:06:15 +01:00
link-mso19 Add a struct sr_context * parameter to hw_init() 2012-12-03 12:07:40 +01:00
openbench-logic-sniffer hw_init(): Save struct sr_context * parameter in struct drv_context 2012-12-03 12:07:40 +01:00
serial-dmm serial-dmm: Add Voltcraft VC-840 (UT-D02) support. 2012-12-17 14:21:12 +01:00
tondaj-sl-814 tondaj-sl-814: Fix unused parameter warning 2012-12-03 19:39:58 -06:00
uni-t-dmm hardware: Call libusb_error_name() in all USB-related error messages 2012-12-05 01:14:44 +01:00
victor-dmm victor-dmm: free in the right order 2012-12-15 04:07:25 +01:00
zeroplus-logic-cube hardware: Call libusb_error_name() in all USB-related error messages 2012-12-05 01:14:44 +01:00
Makefile.am lascar-el-usb: Initial driver skeleton. 2012-12-03 03:53:44 +01:00