From e76a3be977371ec99a71af84de1aea8d4fc9acf0 Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Wed, 27 Feb 2008 16:50:14 +0000 Subject: [PATCH] generic_flush_one_by_one now always flushes, even if how_much == OPTIONALLY git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1103 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/src/tap/cable/generic.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 4cb3ad0a..4862e868 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2008-02-27 Kolja Waschk + + * src/tap/cable/generic.c (generic_flush_one_by_one): Always flush, + don't let the queue grow unnecessarily. + 2008-02-27 Jie Zhang * include/bus.h: Don't include chain.h. diff --git a/jtag/src/tap/cable/generic.c b/jtag/src/tap/cable/generic.c index 092d2fe7..251f9226 100644 --- a/jtag/src/tap/cable/generic.c +++ b/jtag/src/tap/cable/generic.c @@ -173,7 +173,8 @@ do_one_queued_action( cable_t *cable ) void generic_flush_one_by_one( cable_t *cable, cable_flush_amount_t how_much ) { - if( how_much == OPTIONALLY ) return; + /* This will flush always, even if how_much == OPTIONALLY, + * because there is no reason to let the queue grow */ while( do_one_queued_action( cable ) ); }