Home GnuPG
Diffusion GnuPG fd23a0524d80

scd: Fix suspend/resume handling for CCID driver.

Description

scd: Fix suspend/resume handling for CCID driver.

* scd/ccid-driver.c (intr_cb): Try submitting INTERRUPT urb
to see if it's suspend/resume.

Upon suspend/resume, LIBUSB_TRANSFER_NO_DEVICE is returned, since all
URBs are cancelled. We need to see if it's real NODEV error or its by
suspend/resume. We can distinguish by sending URB again.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 15 2018, 3:59 PM
Parents
rGc84bae69e9e0: scd: After fatal error, shutdown a reader.
Branches
Unknown
Tags
Unknown