Enable async use of libosmo-simtrace2
libosmo-simtrace2 traditionally had only supported blocking, synchronous I/O, while remsim-client used asynchronous USB I/O. Using async USB I/O for IRQ + IN transfers while using blocking I/O for OUT transfers doesn't seem to work reliably, so we have to switch OUT also to async. Depends: simtrace2.git Ib8939bdb7f533cd20a34a30a97f12b782b9816c2 Change-Id: I18bf166a95bd4318d700b3e93401b2db5188acfc
This commit is contained in:
parent
1eec53dbfb
commit
dd33725c8f
|
@ -412,6 +412,7 @@ int client_user_main(struct bankd_client *bc)
|
||||||
if (cfg->usb.path)
|
if (cfg->usb.path)
|
||||||
osmo_strlcpy(ifm->path, cfg->usb.path, sizeof(ifm->path));
|
osmo_strlcpy(ifm->path, cfg->usb.path, sizeof(ifm->path));
|
||||||
transp->udp_fd = -1;
|
transp->udp_fd = -1;
|
||||||
|
transp->usb_async = true;
|
||||||
transp->usb_devh = osmo_libusb_open_claim_interface(NULL, NULL, ifm);
|
transp->usb_devh = osmo_libusb_open_claim_interface(NULL, NULL, ifm);
|
||||||
if (!transp->usb_devh) {
|
if (!transp->usb_devh) {
|
||||||
fprintf(stderr, "can't open USB device\n");
|
fprintf(stderr, "can't open USB device\n");
|
||||||
|
|
Loading…
Reference in New Issue