jtag: core: report TRST and SRST as asserted only when they really are
When SRST is never enabled, the global jtag_srst variable is left at its
initial state, that is, -1, and it does _not_ mean SRST is currently
asserted. Same about TRST.
Fixes "reset halt" in cases when srst_pulls_trst but srst usage is not
Signed-off-by: Paul Fertser <email@example.com>
Reviewed-by: Andreas Fritiofson <firstname.lastname@example.org>
Reviewed-by: Tomas Vanek <email@example.com>