scd: Fix suspend/resume handling for CCID driver.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 15 Mar 2018 14:59:22 +0000 (23:59 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 15 Mar 2018 14:59:22 +0000 (23:59 +0900)
commitfd23a0524d8060ed12d87c679b7823686614aaee
tree517d467d70120216a6c287bb141b7be8265c8dfa
parentc84bae69e9e02923f7180e09d161cb0b13257436
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>
scd/ccid-driver.c