Octeon II usb

2016-03-19 Thread Jonathan Matthew
G, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF S

Re: Octeon II usb

2016-03-19 Thread Visa Hankala
K_RST_CTL_HRST) == 0) > + octuctl_clock_setup(sc, ctl); > + > + /* port phy settings */ > + for (port = 0; port < 2; port++) { > + preg = UCTL_UPHY_PORTX_STATUS + (port * 8); > + port_ctl = bus_space_read_8(sc->sc_iot, sc-&g

Re: Octeon II usb

2016-03-19 Thread Jonathan Matthew
On Thu, Mar 17, 2016 at 11:43:03AM +0900, Masao Uebayashi wrote: > A bit surprised that code does more than I imagined by reading your > description :) but it looks very good to me! > > A few comments: > > - `struct octuctl_softc' is not using `sc_ehci' and `sc_ohci'? These were leftovers from w

Re: Octeon II usb

2016-03-19 Thread Masao Uebayashi
if ((ctl & UCTL_CLK_RST_CTL_HRST) == 0) > + octuctl_clock_setup(sc, ctl); > + > + /* port phy settings */ > + for (port = 0; port < 2; port++) { > + preg = UCTL_UPHY_PORTX_STATUS + (port * 8); > + port_ctl =