Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2004 19:30:22 GMT
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/67455: EHCI controller is being programmed with incorrect address during ehci_open ( ehci.c) 
Message-ID:  <200408051930.i75JUMUm065482@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/67455; it has been noted by GNATS.

From: Ian Dowse <iedowse@maths.tcd.ie>
To: rajesh mittal <raj_mittal@yahoo.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/67455: EHCI controller is being programmed with incorrect address during ehci_open ( ehci.c) 
Date: Thu, 05 Aug 2004 20:26:50 +0100

 In message <200408051900.i75J0l3n060840@freefall.freebsd.org>, Ian Dowse writes
 :
 > I think you are correct here, although this seems to have been fixed
 > already in revision 1.7 of ehci.c (June 26th). Can you confirm that
 > this is the case and the PR can be closed?
 
 In fact, I think there is confusion all around here :-).
 
  o Page 48 as numbered at the bottom of the page itself is the 58th
    page of the EHCI spec, so that explains the page number difference.
 
  o It was the 4-bit endpoint number, not the 7-bit device address
    that was set incorrectly at the time that you submitted the PR,
    and this has since been fixed by revision 1.7. This matches up
    with your report, because the bug caused EHCI_QH_HRECL to be set
    as you described when UE_DIR_IN was included:
 
       #define EHCI_QH_SET_ENDPT(x)  ((x) <<  8)
       #define UE_DIR_IN 0x80
       #define EHCI_QH_HRECL         0x00008000
 
    If the problem was with EHCI_QH_SET_ADDR(), it would have caused
    EHCI_QH_INACT instead of EHCI_QH_HRECL to be set:
 
       #define EHCI_QH_SET_ADDR(x)   (x)
       #define EHCI_QH_INACT         0x00000080
 
  o The `addr' value is 7 bits ("Device Address", bits 6:0), so it
    was being set correctly all along.
 
 Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408051930.i75JUMUm065482>