From owner-freebsd-arm@freebsd.org Fri Jul 31 02:46:36 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40FC09AE028 for ; Fri, 31 Jul 2015 02:46:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9B091DC5 for ; Fri, 31 Jul 2015 02:46:35 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D39641FE022; Fri, 31 Jul 2015 04:46:34 +0200 (CEST) Message-ID: <55BAE1E0.9010008@selasky.org> Date: Fri, 31 Jul 2015 04:48:00 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Svatopluk Kraus CC: "freebsd-arm@freebsd.org" Subject: Re: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> <55B73113.2020308@selasky.org> <55B8AB76.7030603@selasky.org> <55B8B297.1010008@selasky.org> <20150729154516.GH78154@funkthat.com> <55B8F5EC.2050908@selasky.org> <55B9F914.7030403@selasky.org> <55BA1889.4040509@selasky.org> <55BA1AC7.4050602@selasky.org> <55BAD963.9000808@selasky.org> <55BAE022.3010301@selasky.org> In-Reply-To: <55BAE022.3010301@selasky.org> Content-Type: multipart/mixed; boundary="------------030403040702070004050406" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2015 02:46:36 -0000 This is a multi-part message in MIME format. --------------030403040702070004050406 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 07/31/15 04:40, Hans Petter Selasky wrote: > On 07/31/15 04:11, Hans Petter Selasky wrote: >> + /* clear RX FIFO level interrupt */ >> + DWC_OTG_WRITE_4(sc, DOTG_GINTSTS, GINTMSK_RXFLVL); >> + > > Minor typo there, should be: > > DWC_OTG_WRITE_4(sc, DOTG_GINTSTS, GINTSTS_RXFLVL); > Please find attached patch. --HPS --------------030403040702070004050406 Content-Type: text/x-diff; name="dwc_otg.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dwc_otg.diff" Index: sys/dev/usb/controller/dwc_otg.c =================================================================== --- sys/dev/usb/controller/dwc_otg.c (revision 286002) +++ sys/dev/usb/controller/dwc_otg.c (working copy) @@ -579,6 +579,9 @@ sc->sc_irq_mask |= GINTMSK_RXFLVLMSK; DWC_OTG_WRITE_4(sc, DOTG_GINTMSK, sc->sc_irq_mask); + /* clear RX FIFO level interrupt */ + DWC_OTG_WRITE_4(sc, DOTG_GINTSTS, GINTSTS_RXFLVL); + /* clear cached status */ sc->sc_last_rx_status = 0; } --------------030403040702070004050406--