From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TORQz-0000s0-Fw for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TORQp-0006qH-Ti for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:05:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TORQp-0006q8-LN for qemu-devel@nongnu.org; Wed, 17 Oct 2012 07:04:59 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9HB4wHf009141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 17 Oct 2012 07:04:59 -0400 Message-ID: <507E90D8.8050405@redhat.com> Date: Wed, 17 Oct 2012 13:04:56 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1350297511-25437-1-git-send-email-hdegoede@redhat.com> <1350297511-25437-14-git-send-email-hdegoede@redhat.com> In-Reply-To: <1350297511-25437-14-git-send-email-hdegoede@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/22] usb: Add an int_req flag to USBPacket List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hans de Goede Cc: qemu-devel@nongnu.org On 10/15/12 12:38, Hans de Goede wrote: > - usb_packet_setup(&xfer->packet, dir, ep, xfer->trbs[0].addr, false); > + int_req = false; > + for (i = 0; i < xfer->trb_count; i++) { > + if (xfer->trbs[i].control & TRB_TR_IOC) { > + int_req = true; > + break; > + } > + } Guess we better add a new int_req field to XHCITransfer and fill it when walking the trb list _anyway_, so we don't have to loop again. cheers, Gerd