scd: Fix for inactive card at start by internal CCID driver.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Dec 2017 08:20:03 +0000 (17:20 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 27 Dec 2017 08:20:03 +0000 (17:20 +0900)
commit4f88b0f56134af2ce56d434b7acd47fcf9b6f7cf
treea048ebe12ed67d58f626acaab0165fc0041afa3c
parenta6849888295f0e0872c948cd72a59374bb867777
scd: Fix for inactive card at start by internal CCID driver.

* scd/ccid-driver.c (do_close_reader): Set NULL on close.
(bulk_in): Move DEBUGOUT and check by EP_INTR.
(ccid_get_atr): Clear powered_off flag after initial status check.

--

Many card readers automatically turn on inserted card, but some
defaults to turning off at start.

GnuPG-bug-id: 3508
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/ccid-driver.c