From owner-freebsd-usb@FreeBSD.ORG Tue Nov 3 11:15:28 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC37B1065672; Tue, 3 Nov 2009 11:15:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id F0EED8FC1E; Tue, 3 Nov 2009 11:15:27 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=CGJ8n4-NgEEA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=uWpPHBPPO1n2KsHQQYoA:9 a=JNBfB33hg-1TGyzhKLUA:7 a=c_tG_9AFcVDJQP5pS9KPFozNrjQA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1329739995; Tue, 03 Nov 2009 12:00:26 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 3 Nov 2009 11:59:33 +0100 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200911030952.nA39qqlq082386@www.freebsd.org> In-Reply-To: <200911030952.nA39qqlq082386@www.freebsd.org> X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpOwEEQ+KWt[{J#x6ow~JO:,zwp.(t; @Aq :4:&nFCgDb8[3oIeTb^'",;u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200911031159.33427.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/140242: dev/usb/controller/ehci_ix4xx.c shortcomings X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 11:15:28 -0000 On Tuesday 03 November 2009 10:52:52 Sebastian Huber wrote: > >Number: 140242 > >Category: usb > >Synopsis: dev/usb/controller/ehci_ix4xx.c shortcomings > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Nov 03 10:00:12 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Sebastian Huber > >Release: 9-current > >Organization: > > embedded brains GmbH > > >Environment: > >Description: > > In ehci_ixp_attach() setting of sc->sc_bus.usbrev is superfluous since this > is also set in ehci_init(). > > Calling ehci_reset() without a valid sc->sc_offs value makes no sense. > > >How-To-Repeat: > > > >Fix: > > Index: ehci_ixp4xx.c > =================================================================== > --- ehci_ixp4xx.c (revision 198848) > +++ ehci_ixp4xx.c (working copy) > @@ -157,8 +157,6 @@ > return (ENOMEM); > } > > - sc->sc_bus.usbrev = USB_REV_2_0; > - > /* NB: hints fix the memory location and irq */ > > rid = 0; > @@ -230,7 +228,6 @@ > > | EHCI_SCFLG_BIGEMMIO > | EHCI_SCFLG_NORESTERM > > ; > - (void) ehci_reset(sc); > > err = ehci_init(sc); > if (!err) { > > >Release-Note: > >Audit-Trail: > >Unformatted: > Committed to USB P4: http://p4web.freebsd.org/chv.cgi?CH=170109 --HPS