With GnuPG master (2.1.21-beta7) on debian jessie I sometimes (happened now for the second time) can't sign / authenticate after waking my system from sleep (suspend to ram). Because the operation fails with the unhelpful error message "Invalid value". Only killing scdaemon resolves the issue.
The debug output is
The Smartcard I was trying to access was a GNUK Token.