scd: internal driver: Submit SET_INTERFACE control transfer.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 22 Feb 2019 11:05:09 +0000 (20:05 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 22 Feb 2019 11:05:09 +0000 (20:05 +0900)
commit611faf1579a56925994d53eb08e1290a4b3958cf
tree0513c126b954df485479d1a2ef2dc2795a481dca
parentc1000c673814e552923cf1361346d7dfeee55608
scd: internal driver: Submit SET_INTERFACE control transfer.

* scd/ccid-driver.c (ccid_open_usb_reader): Alway submit SET_INTERFACE
control transfer.

--

This handling is not mondatory, but it's better to do so, because
there are card reader with pinpad and token with ack button, which
support user interaction.

User interaction status should be reset at open time.  The status
should be reset when the session is closed/stopped.  In practice,
since cleanup routine in a driver may not be called properly, it's
good to submit SET_INTERFACE at open time.

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