Skip to content

Commit

Permalink
usb: Configure octeon2 glue logic for proper uSOF cycle period.
Browse files Browse the repository at this point in the history
The reset value of the uSOF cycle period is incorrect.  Set it to
60,000 bits.  Without this, several commercial USB flash memory
devices and hubs fail to work properly.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
David Daney authored and Greg Kroah-Hartman committed May 3, 2011
1 parent bf54171 commit 14be249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/usb/host/octeon2-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ void octeon2_usb_clocks_start(void)
cvmx_write_csr(CVMX_UCTLX_UPHY_PORTX_CTL_STATUS(i, 0),
port_ctl_status.u64);
}

/* Set uSOF cycle period to 60,000 bits. */
cvmx_write_csr(CVMX_UCTLX_EHCI_FLA(0), 0x20ull);
exit:
mutex_unlock(&octeon2_usb_clocks_mutex);
}
Expand Down

0 comments on commit 14be249

Please sign in to comment.