mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
scd: Internal CCID driver: Call libusb_clear_halt at ccid_setup_intr.
* scd/ccid-driver.c (ccid_setup_intr): Reset the endpoint. (ccid_vendor_specific_init): Don't call libusb_clear_halt. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
d561c936a2
commit
6af978713e
@ -1277,9 +1277,6 @@ ccid_vendor_specific_init (ccid_driver_t handle)
|
||||
* and SET_INTERFACE doesn't reset it. Make sure it works at the init.
|
||||
*/
|
||||
abort_cmd (handle, 0);
|
||||
r = libusb_clear_halt (handle->idev, handle->ep_intr);
|
||||
DEBUGOUT_1 ("libusb_clear_halt intr: %s\n", libusb_error_name (r));
|
||||
r = 0;
|
||||
}
|
||||
|
||||
if (r != 0 && r != CCID_DRIVER_ERR_CARD_INACTIVE
|
||||
@ -1571,6 +1568,7 @@ ccid_setup_intr (ccid_driver_t handle)
|
||||
struct libusb_transfer *transfer;
|
||||
int err;
|
||||
|
||||
libusb_clear_halt (handle->idev, handle->ep_intr);
|
||||
transfer = libusb_alloc_transfer (0);
|
||||
handle->transfer = transfer;
|
||||
libusb_fill_interrupt_transfer (transfer, handle->idev, handle->ep_intr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user