Blackfin: jtag-console: robustify against missing peer
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Jul 2010 15:34:49 +0000 (11:34 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 25 Jul 2010 19:17:27 +0000 (15:17 -0400)
commit5079d8bbad77bf21ecc5f17e05141f04cfaaabb3
tree74aa53dfe6f07de94cefd9c63b2fa57074479921
parentf5ff2030bfd7b1bc1ab859f90d285a861dca715f
Blackfin: jtag-console: robustify against missing peer

If the other side isn't listening, we should reset the state to ignore
the whole message and not just the part we missed.  This makes it easier
to connect at any time to the jtag console without worrying about the two
sides getting out of sync and thus sending garbage back and forth.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/cpu/jtag-console.c