usbutils.c

Branch


Log

Author Commit Date CI Message
xzx 6786bbd2 2017-09-11T18:12:19 Add Avalon8 support
Alexander I. Mogilny 6f01253b 2017-01-26T13:30:45 merge with cgminer rev 87e3da18638275d2b5adbd0ccd0a17225793bf8f code refactoring: - Con Colivas notes - whitespace nitts - unused parameters removed - compiler warnings removed
Con Kolivas 9102e00a 2017-01-23T21:08:02 Merge branch 'master' of https://github.com/vthoang/cgminer into vthoang-master
Con Kolivas e491278a 2017-01-23T20:53:50 Allocate appropriate memory size for PSECURITY_DESCRIPTOR
Con Kolivas ec1ac289 2017-01-23T14:07:24 Windows build fixes.
vthoang 68cc5b7e 2017-01-09T19:10:16 Merge https://github.com/ckolivas/cgminer
Con Kolivas 78eb4240 2016-11-25T16:50:07 Check for nodev errors after usb transfers to not change the err value.
Con Kolivas c5c8d601 2016-11-25T15:27:53 There is no need for complicated locking in usb_reset; simply use the write lock and avoid locking risks.
Con Kolivas f309e4f1 2016-11-25T10:55:51 Reset usb devices if they fail to initialise.
Mikeqin 04e6a4b9 2016-07-29T15:39:08 Add Avalon7 support
Con Kolivas f76349e7 2016-09-20T13:36:35 Reattach kernel driver to correct IF
vthoang 70cac0d6 2016-05-02T18:16:39 tidy up naming to match general conventions
vthoang dd04a305 2016-05-01T20:15:05 Add in ramp code. Untie compac detect from default icarus fallback detect to have a cleaner device detect path.
Mikeqin 359be2e6 2015-11-16T15:43:29 Merge remote-tracking branch 'ck/master' into avalon4 * Merge 3f70e48cc7a590b4dac407fd002159bab2428ccd
Con Kolivas f107ae79 2015-06-12T14:08:10 Move blockerupter driver to after icarus to not interfere with their detection if built in
Con Kolivas f8f6cee1 2015-06-12T13:57:14 Only blacklist devices on iManufacturer if they don't have an iProduct
kanoi b8593020 2015-06-04T07:59:44 AntS3 - initial S3 merge basic support
Mikeqin f194c588 2015-05-20T12:06:49 Support Avalon nano 2.0
Mikeqin 92644427 2015-05-15T15:22:26 Rename to Avalon miner
Mikeqin 4f70fd83 2015-05-15T10:03:15 Add timeout for Avalon4 mini
Xiangfu 6c69ab4d 2015-05-12T12:56:38 Update default interface
Mikeqin b5cb60eb 2015-05-07T19:52:33 Sync with the firmware name
Xiangfu c3445d09 2015-05-07T11:30:47 Update USB ID
Mikeqin 7cb7843d 2015-05-04T14:09:31 Rename to Avalon4 mini again
Xiangfu 3a4cd79a 2015-05-03T14:32:40 Rename to Avalon4 mini
Mikeqin ec421917 2015-04-23T18:54:54 Support Avalon4 mini
Kingdon 666f0059 2015-04-02T14:05:38 regressed with "BAL" little-jalapenos My older "BAJ" device still works, but two newer devices that register themselves as "BAL" with Manufacturer shown as "FTDI" were no longer recognized with the latest version of CG-Miner. These are jalapenos. Granted they are obsolete, but... I'm still using them
Con Kolivas fa206d3d 2015-03-22T10:16:19 Add yet more whitelisting of BMA devices, removing the case insensitive match for manufacturer
Con Kolivas b7842d55 2015-03-05T09:33:51 Use alloc helpers in usbutils
Mikeqin 5fa067fb 2015-01-29T16:44:05 Support auto adjust voltage individually
Mikeqin 69ffea91 2015-01-07T11:56:12 Increase the AUC timeout for multiple devices
Con Kolivas 9755eb45 2015-01-05T14:37:04 Fix detection of butterfly labs sc 65nm devices with the addition of the 28nm device imanufacturers trumping their detection
Con Kolivas 5c8a05dc 2014-12-14T12:58:39 Use strcasecmp for device matching in usbutils in case of subtle manufacturer changes
Con Kolivas 3a10daeb 2014-12-14T12:57:06 Add manufacturer and product definitions for ava4
Con Kolivas 56873440 2014-12-14T10:57:34 Add sanity check for NULL data being passed to usb_perform_transfer
Con Kolivas bef20e4f 2014-12-14T10:16:43 Add a cgpu device option to disable zero length packets and enable it for avalon4
Xiangfu c6b20a12 2014-12-10T23:37:39 Add Avalon4 support
Con Kolivas feaea287 2014-10-18T11:23:37 Implement blacklisting of attempting to match known products from ones without identifiers
Jason Zong d54bd59d 2014-10-14T02:01:57 Merge remote-tracking branch 'upstream/master'
naituida a2e33b4f 2014-09-15T15:07:15 Add BlockErupter Driver
Jimmy Situ 44f8f61f 2014-09-25T23:20:44 Avalon Nano: Add support Avalon Nano usb miner
Con Kolivas 1ad91e47 2014-09-20T10:19:20 Add whitelisting of firmware used in final bflsc28 products
Con Kolivas e8779ccf 2014-09-06T15:44:28 Merge branch 'master' into bflsc28
Con Kolivas f8ccbcb1 2014-07-28T14:33:04 Initial commit of ava2 conversion to direct USB
Con Kolivas e89b5059 2014-07-19T18:23:04 Initial import and conversion of hashratio driver to direct USB
ckolivas 90c1619d 2014-06-27T16:12:36 Convert all bflsc transfers to the full 512 bytes
ckolivas 22610716 2014-06-27T09:20:15 Do initial detection of bflsc28 devices
Con Kolivas c964aa5f 2014-06-15T23:12:34 Import basic rbox driver
kanoi e8b0a29d 2014-06-09T13:01:11 Merge pull request #607 from kanoi/s2 S2 testing
Con Kolivas d2ebf4a1 2014-05-31T13:17:13 Add one more usbutils fix
Con Kolivas 6efe7e35 2014-05-31T12:58:17 Convert uses of usbutils memcpy to cg_memcpy
kanoi 4b55ab7e 2014-05-20T15:46:57 AntS2 code conversion and addition of optional noncedup check
Con Kolivas 9e9430d7 2014-05-05T09:37:31 Rename nf1 driver to nfu in anticipation of support for more chips
Con Kolivas d97f893c 2014-04-22T20:03:21 Discretely identify the onestring miners as OSM
Con Kolivas 5d2f20a3 2014-04-22T19:23:34 Add identification for onestring miner variants
ckolivas dd2d625d 2014-04-14T12:13:46 Make instructions associated with winusb error even more explicit
Angus Gratton c06d951d 2014-02-26T11:49:26 Fix Windows bug with libusb_reset_device returning SUCCESS for disconnected device Symptoms (new in latest libusb perhaps) on Windows 7, using WinUSB v6.1.7600.16385 kernel driver: - Unplug device during mining - libusb read/write operations return -1 LIBUSB_ERROR_IO - libusb reset returns 0 LIBUSB_SUCCESS ... hence the error checking ends up infinite looping (or until timeout) trying to issue a reset, as it believes each reset has succeeded. This change only allows a reset once per failed read or write operation - if the first reset fails, don't bother trying again. Conflicts: usbutils.c
Con Kolivas d1c5bfa5 2014-03-09T14:06:56 Simplify dramatically the cross-process cgminer locking through use of flock instead of sysv semaphores.
Con Kolivas 52778727 2014-03-02T23:13:38 Merge branch 'bpmx'
Con Kolivas dbec4a0d 2014-03-02T22:42:59 Store usb11 and tt flags as booleans in cgusbdev allowing them to be discretely enabled as well as detected by the device data.
Con Kolivas 5a6e228e 2014-03-02T13:25:37 Add identifiers for bxm bitfury devices.
Kano ed9bd66b 2014-03-02T00:34:09 AntS1 - add detection information to usbutils
Con Kolivas d93038c6 2014-02-26T23:35:09 Only break out of usb_detect_one when a new device is found.
Con Kolivas 26a0ea5b 2014-02-26T23:30:48 Provide a usb_detect_one wrapper which only plugs one device at a time, breaking out otherwise.
Con Kolivas 870b4be9 2014-02-22T15:52:15 Transferred value is corrupt on a NODEV error in usbutils.
Con Kolivas bacd9008 2014-02-22T15:39:00 Only memcopy *transferred data in usbutils if we have received only success or a non-fatal error.
Con Kolivas 1c60a6df 2014-02-22T10:52:09 Revert "Restarts can rarely take a while on hashfast so increase the timeout to 1 second to avoid the usb flood failure." This reverts commit c8648adaa8c5d726412c59f49131762d3fce13ec.
Con Kolivas c8648ada 2014-02-21T14:56:34 Restarts can rarely take a while on hashfast so increase the timeout to 1 second to avoid the usb flood failure.
Con Kolivas 3bb5b054 2014-02-15T16:56:08 Use the simplelog function from usb_list()
Con Kolivas cd79fbd4 2014-02-15T16:51:32 Use a unique usb_list function displaying only pertinent information when listing usb devices from the menu.
Con Kolivas 71939319 2014-02-15T14:53:36 Abstract out the _in_use function to take different linked lists.
Con Kolivas 2108cceb 2014-02-15T14:45:58 Break out of linked list loop in remove_in_use in case we've gone over the whole list.
Con Kolivas 492636a8 2014-02-14T21:36:58 Prevent recursive loop in __is_in_use linked list walking.
Con Kolivas c5694ee8 2014-02-14T21:23:42 Add the ability to whitelist previously blacklisted usb devices from the menu.
Con Kolivas cfa0f6bc 2014-02-14T19:52:35 Use a bool in struct cgpu to know when a usb device has been blacklisted, avoiding blacklisting it more than once.
Con Kolivas 5cda70e7 2014-02-14T08:09:17 Update various copyright dates
Con Kolivas 7a435b6e 2014-02-13T23:37:50 Add a mechanism to blacklist a usb device from its cgpu.
Con Kolivas 19856d67 2014-02-13T23:12:27 Add a usb_reset by cgpu function to usbutils.
Con Kolivas 69d67af1 2014-02-12T20:46:44 Add driver for cointerra devices.
Con Kolivas 2614321a 2014-02-08T07:51:06 Read pipe errors that don't clear are worth attempting to reset the usb.
Con Kolivas d883396e 2014-02-08T07:47:34 Revert "Do away with usb resets entirely since we retry on both pipe and io errors now and they're of dubious value." This reverts commit 4cde067658c9f34a6a98ad5385145432c44eb571.
Con Kolivas 91bd04e8 2014-02-01T10:55:10 Do not memcpy in usbutils unless data was transferred.
Con Kolivas d2e6648c 2014-01-29T22:21:55 Add support for AntminerU1 devices with the icarus driver.
Con Kolivas 4cde0676 2014-01-29T20:54:24 Do away with usb resets entirely since we retry on both pipe and io errors now and they're of dubious value.
Con Kolivas 56f9795a 2014-01-29T20:09:14 Retry on usb IO errors instead of faking success.
ckolivas 6ab7b2b3 2014-01-29T10:50:22 Check that we've cleared the pipe error after a clear request, not the err value which is unchanged.
Con Kolivas e2a10dfe 2014-01-25T00:17:45 Do not send a usb reset on a usb read pipe error.
Con Kolivas d551eba0 2014-01-25T00:16:15 Don't replace usb pipe errors with the pipe reset return code.
Kano d9440866 2014-01-18T09:36:51 Modify thread naming to make them easier to identify
Con Kolivas 87f02131 2014-01-11T16:22:30 Check for loss of device in usb read before any other code on the usbdev
Con Kolivas 61bee221 2014-01-08T22:28:00 Fill the appropriate type of usb transfer when we know if it's an interrupt transfer instead of a bulk one.
Con Kolivas ad6afa39 2014-01-08T22:18:02 Use the internal knowledge of the usb epinfo to determine whether we should be doing an interrupt instead of a bulk transfer, and do not send a ZLP if so, and limit read transfer to expected size automatically.
Con Kolivas c644b749 2014-01-05T20:13:02 Provide a way for usb reads to just read the size asked for with a limit bool.
Con Kolivas 0615cc8c 2014-01-03T16:47:51 Don't return an error in usb read if we've managed to get the whole read length we've asked for.
Con Kolivas d66ebfee 2014-01-03T16:46:07 Use correct endpoint order for nanofury devices and read with a short timeout on return loop from send_recv.
Con Kolivas b849a1b9 2014-01-02T22:25:56 Add basic device detection and updated udev rules for nanofury devices.
Con Kolivas 1b7737d8 2013-12-24T08:34:56 Fix BXF being inappropriately dependent on drillbit.
Kano 97a13df4 2013-12-23T06:58:26 Merge remote-tracking branch 'drill/master' into drill
Con Kolivas afe77108 2013-12-21T08:28:23 Change default hashfast timeout to 500ms.
Angus Gratton 85aebc41 2013-12-11T19:29:10 Merge remote-tracking branch 'upstream/master' into merge_385