From owner-svn-src-head@FreeBSD.ORG Mon Sep 28 07:10:32 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E98F31065672; Mon, 28 Sep 2009 07:10:32 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D95328FC12; Mon, 28 Sep 2009 07:10:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8S7AWEX046283; Mon, 28 Sep 2009 07:10:32 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8S7AW2P046281; Mon, 28 Sep 2009 07:10:32 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200909280710.n8S7AW2P046281@svn.freebsd.org> From: Andrew Thompson Date: Mon, 28 Sep 2009 07:10:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197556 - head/sys/dev/usb/controller X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2009 07:10:33 -0000 Author: thompsa Date: Mon Sep 28 07:10:32 2009 New Revision: 197556 URL: http://svn.freebsd.org/changeset/base/197556 Log: Clear all interrupts rather than just SETUP packet. Submitted by: Hans Petter Selasky Modified: head/sys/dev/usb/controller/atmegadci.c Modified: head/sys/dev/usb/controller/atmegadci.c ============================================================================== --- head/sys/dev/usb/controller/atmegadci.c Mon Sep 28 07:09:17 2009 (r197555) +++ head/sys/dev/usb/controller/atmegadci.c Mon Sep 28 07:10:32 2009 (r197556) @@ -301,8 +301,8 @@ atmegadci_setup_rx(struct atmegadci_td * sc->sc_dv_addr = 0xFF; } - /* clear SETUP packet interrupt */ - ATMEGA_WRITE_1(sc, ATMEGA_UEINTX, ~ATMEGA_UEINTX_RXSTPI); + /* Clear SETUP packet interrupt and all other previous interrupts */ + ATMEGA_WRITE_1(sc, ATMEGA_UEINTX, 0); return (0); /* complete */ not_complete: