From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAz49-0002LU-PB for qemu-devel@nongnu.org; Sat, 16 Apr 2011 02:33:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAz49-0001HR-0s for qemu-devel@nongnu.org; Sat, 16 Apr 2011 02:33:09 -0400 Received: from ipmail05.adl6.internode.on.net ([150.101.137.143]:63220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAz48-0001HA-L6 for qemu-devel@nongnu.org; Sat, 16 Apr 2011 02:33:08 -0400 From: Brad Hards Date: Sat, 16 Apr 2011 16:33:02 +1000 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201104161633.02418.bradh@frogmouth.net> Subject: Re: [Qemu-devel] Bug #757654: UHCI fails to signal stall response patch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Vesely On Sat, 16 Apr 2011 06:57:00 am Jan Vesely wrote: > + s->status |= UHCI_STS_USBERR; This is per UHCI 1.1D Section 4.1.5. Looks good. > + *int_mask |= 0x02; > + if (td->ctrl & TD_CTRL_IOC) > + *int_mask |= 0x01; > + uhci_update_irq(s); I see "A hardware interrupt is signalled to the system", but can you provide a little explanation of why this particular interrupt mask? > + s->status |= UHCI_STS_USBERR; This is per UHCI 1.1d Section 4.1.4. Looks good. > + *int_mask |= 0x02; > + if (td->ctrl & TD_CTRL_IOC) > + *int_mask |= 0x01; > + uhci_update_irq(s); I see "A hardware interrupt is signalled to the system", but can you provide a little explanation of why this particular interrupt mask?